Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8080;
- server_name mydomain.com;
- root /var/www/PHPList/public_html/;
- index index.php;
- access_log /usr/local/etc/nginx/logs/default.access.log main;
- error_log /usr/local/etc/nginx/logs/default.error.log;
- location / {
- try_files $uri $uri.php $uri/ /index.php?$args;
- }
- include /usr/local/etc/nginx/conf.d/php-fpm;
- location ~ \.php$ {
- try_files $uri = 404;
- #include /etc/nginx/fastcgi_params;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location = /info {
- allow 127.0.0.1;
- deny all;
- rewrite (.*) /.info.php;
- }
- error_page 404 /404.html;
- error_page 403 /403.html;
- }
Add Comment
Please, Sign In to add comment