October 01, 2010 09:45PM
Even more confused.... I commented out my entire default file except server {} and IT STILL LOADS the index.php file WITH the PHP fast CGI??!!! So basically my default file was doing NOTHING.

My current file:
CAPS ARE MY PRIVATE VALUES with the EXEPCTION of SCRIPT_FILENAME which appears to be a constant or variable

server {
listen 90;
# server_name SERVER
# access_log PATH_TO_LOG
# error_log PATH_TO_LOG
# root /var/www;
# index index.php index.html
# rewrite_log on;
# if ($request_ur ~* ^(/welcome(/index)?|index(.php)/?$))
# {
# rewrite ^(.*)$ / permanent;
# }
# if ($request_uri ~* index/?$)
# {
# rewrite ^/(.*)/index?$ /$1 permanent;
# }
# if (!-d $request_filename)
# {
# #some sites use * and some use + what is the difference?
# rewrite ^/(.+)/$ /$1 permanent;
# }
# if (!-d $request_uri ~* ^/system)
# {
# rewrite ^/(.*)$ /index.php?/$1 last;
# }
# if (!-e $request_filename)
# {
# rewrite ^/$ index.php/;
# rewrite ^(/.*)$ /index.php/$1 last;
# }
# error_page 404 /index.php;
#location ~ \.php$
# {
# fastcgi_pass 127.0.0.1:90000;
# fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME DOCROOT$fastcgi_script_name;
# include fastcgi_params;
# }
# location ~ /\.ht
# {
# deny all;
# }
}
Subject Author Posted

Understanding URL rewrite in sites-available

ashrobertent October 01, 2010 09:15PM

Re: Understanding URL rewrite in sites-available

ashrobertent October 01, 2010 09:18PM

Re: Understanding URL rewrite in sites-available

ashrobertent October 01, 2010 09:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 167
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready