Reverse Proxy Using Squid For Directadmin

.::Gsmdenis::.

Verified User
Joined
Jun 15, 2007
Messages
94
Tested on Centos 5.5 / Apache 2.2.17 working fine ! well ,regarding squid config will be takes a little time ! (Working for Apache 2.x)

How to start ?

- Install Squid version 2.6 last version

Edit squid.conf

Code:
#http_port 3128

to

Code:
http_port [B][COLOR="Lime"]You IP address[/COLOR][/B]:80 vhost vport


At

Code:
#  TAG: cache_peer

Add

Code:
cache_peer 127.0.0.1 parent 80 0 no-query multicast-responder originserver login=PASS


Change

Code:
http_access allow localhost
http_access deny all

to

Code:
#http_access allow localhost
#http_access deny all


This simple config, more information you have to read squid.conf file and do some modification which what you need. ^_^




-Edit /etc/httpd/conf/httpd.conf


Change:
Code:
Listen 80

To

Code:
ServerRoot "/etc/httpd"
Listen 127.0.0.1:80
NameVirtualHost 127.0.0.1:80



-Go to /usr/local/directadmin/data/templates

Edit virtual_host2.conf and virtual_host2_sub.conf file

Code:
<VirtualHost |IP|:80 |MULTI_IP|>

To

Code:
<VirtualHost 127.0.0.1:80 |MULTI_IP|>


Now go to directadmin admin lever and check Custom HTTPD Configurations, check per domain and refesh (Press Save is ok) the Httpd.conf Customization for domain.

Finaly

Code:
Service httpd restart
Service squid start


Almost the reverse proxy now ready runing on your server !


BR.,

Denis
 
Back
Top