php - Nginx+apache. Different entry point -
i have apache (listen 8888) , nginx (listen 80).
in nginx.conf
location ~ \.php$ { root /var/www/web/; ssi on; proxy_pass http://127.0.0.1:8888; }
in apache conf
<virtualhost *:8888> loglevel info servername testserver.localhost documentroot /var/www/web/ <directory /var/www/web> allowoverride none directoryindex index.php addtype application/x-httpd-php .php </directory> </virtualhost>
i want 2 entry point.
- testserver.localhost/forum/[anyfolders]/... bring index file in /var/www/forum/index.php
- any other bring index file in /var/www/web
what changes need make in nginx.conf , apache conf?
Comments
Post a Comment