Apache at 8888. Nginx at 80. In the ngings configuration, all requests are sent to Apache

location ~ \.php$ { root /var/www/web/; ssi on; proxy_pass http://127.0.0.1:8888; } 

In apache so

 <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> 

But it is necessary that testserver.localhost / forum / * had an entry point /var/www/forum/index.php

Which way to dig? Do I need to register a new directory in Apache? Push pliz.

    1 answer 1

    Which way to dig? Do I need to register a new directory in Apache? Push pliz.

    http://testserver.localhost/forum/ cannot be a domain root (virtualhost root).

    You just need to install the forum in the /var/www/web/forum/ directory and not in /var/www/forum/ and do not need to write anything anywhere. (if you want to keep the files in /var/www/forum/ , then you can make symlinks, but this is not worth it IMHO - there will be more problems)

    Different virtualhost can be if you want http://forum.testserver.localhost/ . Then you can also post in /var/www/forum/ .