Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Rewrite Rules nginx/1.2.1 index.php?go=XXX to XXX.php

$
0
0
This is the rest of my vhost.conf for this site


"
server {
listen 85.xx.243.xx:80;
server_name censored.de *.censored.de;
access_log /var/customers/logs/censored-access.log combined;
error_log /var/customers/logs/censored-error.log error;
root /var/customers/webs/censored/;
location / {
index index.php index.html index.htm;
try_files $uri $uri/ @rewrites;
}
location @rewrites {
rewrite ^ /index.php last;
}
location /webalizer {
alias /var/customers/webs/censored/webalizer/censored.de/;
auth_basic "Restricted Area";
auth_basic_user_file /etc/nginx/froxlor-htpasswd/8-75284aa9bcc4cec762fa3e432cc.htpasswd;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/nginx/censored.de-php-fpm.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
"

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>