This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
a.giorgini31835
Hi, I know this must be something rewriting-related. I've just installed a fresh copy of ubuntu 18, with nginx default configuration. I access the site with the ip, like this: http://192.168.1.127/ I get no CSS/JS on frontend and 404 on backend. This is my nginx conf:
server { listen 80 default_server; listen [::]:80 default_server;
root /var/www/html;
location ~ \.php$ {
root /var/www/html;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html index.php;
server_name _;
location / {
root /var/www/html;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ index.php$is_args$args =404;
}
then I added all the rewrites as per the documentation. Any help?
Thanks
1-1 of 1