DeadCode
Customer
Hello! The nginx configuration that was provided doesn't seem to work.
The url don't seem to be re-written, and yes, I have reloaded nginx.
The url don't seem to be re-written, and yes, I have reloaded nginx.
Code:
# SC
server {
listen 80;
root /home/public_html/=hiddden=;
index index.php index.html index.htm;
server_name =hidden=;
location ~* \.(png|jpg|jpeg|gif|ico)$
{
expires 30d;
log_not_found off;
}
location / {
try_files $uri $uri/ /dbseo.php;
}
location ~ ^((?!dbseo).)*\.php$
{
rewrite ^/(.*)$ /dbseo.php last;
}
# location ~ \.(hh|php)$ {
# fastcgi_keep_conn on;
# fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# include fastcgi_params;
# }
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
}
}
Last edited: