I have two sub domains: sinology.mydomain.com and application.mydomain.com. I have Apache 2.2 handling HTTP requests.
I am looking at sending synology HTTP to another computer and application HTTP request to the Apache computer but on a different port.
I have made the following changes in the Apache conf files, but this is not working.
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<VirtualHost *.80>
ServerName application.mydomain.co.uk
ProxyPass /app http://localhost:8080/app
ProxyPass / http://localhost:8080/app
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
<VirtualHost *.80>
ServerName synology.mydomains.co.uk
ProxyPass / http://192.168.0.3
ProxyPassReverse / http://192.168.0.3
</VirtualHost>
<Location />
Order allow,deny
Allow from all
</Location>
Thanks. David.
Maybe you should use
<VirtualHost *:80>
instead of
<VirtualHost *.80>
What is more, I suggest you look into the log to see what Apache says.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.