currently I try to reverse proxy one of the secondary directories of one of my discuz stations
when I am testing, the home page can be successfully reverse proxied out. The httpd-vhosts.conf code is as follows:
Include / usr/local/apache/conf/vhost/*.conf
< VirtualHost *: 80 >
ServerName localhost
ServerAlias localhost
DocumentRoot / data/www/default
< Directory / data/www/default >
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Order Deny,Allow
Require all granted
DirectoryIndex index.php index.html index.htm
< / Directory >
< / VirtualHost >
< VirtualHost 45.123.xxx.xxx:80 >
ServerAdmin jfscou@outlook.com
DocumentRoot / data/www/xxx.com
ServerName 45.123.xxx.xxx
ServerAlias 45.123.xxx.xxx
ProxyPreserveHost On
ProxyPass /
ProxyPassReverse / http://xxx.com/
but when I try to proxy the secondary directory, I will get the error that the permissions are less than 403, and I can"t even open the home page of the website.
httpd-vhosts.conf code is as follows:
Include / usr/local/apache/conf/vhost/*.conf
< VirtualHost *: 80 >
ServerName localhost
ServerAlias localhost
DocumentRoot / data/www/default
< Directory / data/www/default >
SetOutputFilter DEFLATE
Options FollowSymLinks
AllowOverride All
Order Deny,Allow
Require all granted
DirectoryIndex index.php index.html index.htm
< / Directory >
< / VirtualHost >
< VirtualHost 45.123.xxx.xxx:80 >
ServerAdmin jfscou@outlook.com
DocumentRoot / data/www/xxx.com
ServerName 45.123.xxx.xxx
ServerAlias 45.123.xxx.xxx
ProxyPreserveHost On
ProxyPass / 2015
ProxyPassReverse / 2015 http://xxx.com/
I don"t know what"s wrong with the reverse proxy of the secondary directory?
I also hope you can give me some advice