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

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -