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.

  1. testserver.localhost/forum/[anyfolders]/... bring index file in /var/www/forum/index.php
  2. any other bring index file in /var/www/web

what changes need make in nginx.conf , apache conf?


Comments

Popular posts from this blog

c++ - CPP, 'X' button listener -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -