Dmitriy Tarasov
Verified User
- Joined
- Nov 5, 2006
- Messages
- 43
Hello,
I would like to use squid as a reverse proxy. For that I must change apache port from 80 to 81.
I replaced <VirtualHost |IP|:80> by <VirtualHost |IP|:81> in the /usr/local/directadmin/data/templates/custom/virtual_host.conf
and rewrited all http.conf files with the new template. After that changed
Listen 80 -> Listen 81
Port 80 -> Port 81
In the /etc/httpd/conf/httpd.conf
But
/usr/sbin/apachectl configtest
gives me the next warning
[warn] VirtualHost ip:81 overlaps with VirtualHost ip:81, the first has precedence, perhaps you need a NameVirtualHost directive
Please, advise me what shell I do in order to change apache port from 80 to 81?
Thank you.
I would like to use squid as a reverse proxy. For that I must change apache port from 80 to 81.
I replaced <VirtualHost |IP|:80> by <VirtualHost |IP|:81> in the /usr/local/directadmin/data/templates/custom/virtual_host.conf
and rewrited all http.conf files with the new template. After that changed
Listen 80 -> Listen 81
Port 80 -> Port 81
In the /etc/httpd/conf/httpd.conf
But
/usr/sbin/apachectl configtest
gives me the next warning
[warn] VirtualHost ip:81 overlaps with VirtualHost ip:81, the first has precedence, perhaps you need a NameVirtualHost directive
Please, advise me what shell I do in order to change apache port from 80 to 81?
Thank you.
Last edited: