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

Multiple PHP Websites

$
0
0
Hi

I think I need some help configurate nginx properly.
Im running multiple php sites in /usr/share/nginx/www/<subdirectory>, which works well with the nearly default configuration of nginx.

Now I want to make a new subpage with rewrite rules. I tried this configuration in a .conf file.. but it did not work.

# nginx configuration
autoindex off;

location /mysub/ {
if (!-e $request_filename) {
rewrite ^/mysub/(.+)$ /mysub/index.php?url=$1 break;
}
}

Thanks for your help.

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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