Hi,
I have configured litespeed 3.3.11 with php4 4.4.8 (recompiled) on an internal Linux RHEL4-U2 box and the Horde/IMP mail application worked fine.
However, when I try to access the domain via the external IP address serviced by the Apache with Reverse Proxy, I got error 404:
404 Not Found
The resource requested could not be found on this server!
Note that in the test I have shutdown the internal Apache webserver on port 80 and activated LiteSpeed on port 80.
Looking at the Virtual host domain log, the only message was:
202.64.220.xx - - [19/May/2008:00:12:48 +0800] "GET / HTTP/1.1" 404 390 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"
The lsws VHOST configuration is:
<?xml version="1.0" encoding="UTF-8"?>
<virtualHostConfig>
<docRoot>$SERVER_ROOT/MyWWW/html/horde-312</docRoot>
<enableGzip>1</enableGzip>
<enableIpGeo>0</enableIpGeo>
<logging>
<log>
<useServer>0</useServer>
<fileName>$VH_ROOT/logs/error.log</fileName>
<logLevel>DEBUG</logLevel>
<rollingSize>5M</rollingSize>
</log>
<accessLog>
<useServer>0</useServer>
<fileName>$VH_ROOT/logs/access.log</fileName>
<pipedLogger></pipedLogger>
<logFormat></logFormat>
<logHeaders>7</logHeaders>
<rollingSize>5M</rollingSize>
<keepDays>30</keepDays>
<bytesLog></bytesLog>
<compressArchive>1</compressArchive>
</accessLog>
</logging>
<index>
<useServer>0</useServer>
<indexFiles></indexFiles>
<autoIndex>0</autoIndex>
<autoIndexURI></autoIndexURI>
</index>
<scriptHandlerList>
<scriptHandler>
<suffix>php</suffix>
<type>lsapi</type>
<handler>phpLsapi</handler>
<note></note>
</scriptHandler>
</scriptHandlerList>
<htAccess>
<allowOverride>15</allowOverride>
<accessFileName>.htaccess</accessFileName>
</htAccess>
<expires>
<enableExpires>1</enableExpires>
<expiresDefault>A4800</expiresDefault>
<expiresByType></expiresByType>
</expires>
<security>
<hotlinkCtrl>
<enableHotlinkCtrl>0</enableHotlinkCtrl>
<suffixes>jpeg, png, jpg, gif</suffixes>
<redirectUri></redirectUri>
<allowDirectAccess>1</allowDirectAccess>
<onlySelf>1</onlySelf>
<allowedHosts></allowedHosts>
<matchedHosts></matchedHosts>
</hotlinkCtrl>
</security>
</virtualHostConfig>
The external Apache (outside the Firewall) configure is:
<VirtualHost 202.64.220.xx:80>
ServerName mail.fredho.net
LogLevel warn
ErrorLog logs/error.log
TransferLog logs/access.log
<IfModule mod_proxy.c>
ProxyPass / http://192.168.1.215/
ProxyPassReverse / http://192.168.1.215/
</IfModule>
</VirtualHost>
There're no errors on the external Apache log in reviewing any problem on the proxy.
Note also that I am not enable Apache config in the lsws setup.
Any ideas what I did wrong in the setup for Reverse Proxy?
Thanks.
I have configured litespeed 3.3.11 with php4 4.4.8 (recompiled) on an internal Linux RHEL4-U2 box and the Horde/IMP mail application worked fine.
However, when I try to access the domain via the external IP address serviced by the Apache with Reverse Proxy, I got error 404:
404 Not Found
The resource requested could not be found on this server!
Note that in the test I have shutdown the internal Apache webserver on port 80 and activated LiteSpeed on port 80.
Looking at the Virtual host domain log, the only message was:
202.64.220.xx - - [19/May/2008:00:12:48 +0800] "GET / HTTP/1.1" 404 390 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12"
The lsws VHOST configuration is:
<?xml version="1.0" encoding="UTF-8"?>
<virtualHostConfig>
<docRoot>$SERVER_ROOT/MyWWW/html/horde-312</docRoot>
<enableGzip>1</enableGzip>
<enableIpGeo>0</enableIpGeo>
<logging>
<log>
<useServer>0</useServer>
<fileName>$VH_ROOT/logs/error.log</fileName>
<logLevel>DEBUG</logLevel>
<rollingSize>5M</rollingSize>
</log>
<accessLog>
<useServer>0</useServer>
<fileName>$VH_ROOT/logs/access.log</fileName>
<pipedLogger></pipedLogger>
<logFormat></logFormat>
<logHeaders>7</logHeaders>
<rollingSize>5M</rollingSize>
<keepDays>30</keepDays>
<bytesLog></bytesLog>
<compressArchive>1</compressArchive>
</accessLog>
</logging>
<index>
<useServer>0</useServer>
<indexFiles></indexFiles>
<autoIndex>0</autoIndex>
<autoIndexURI></autoIndexURI>
</index>
<scriptHandlerList>
<scriptHandler>
<suffix>php</suffix>
<type>lsapi</type>
<handler>phpLsapi</handler>
<note></note>
</scriptHandler>
</scriptHandlerList>
<htAccess>
<allowOverride>15</allowOverride>
<accessFileName>.htaccess</accessFileName>
</htAccess>
<expires>
<enableExpires>1</enableExpires>
<expiresDefault>A4800</expiresDefault>
<expiresByType></expiresByType>
</expires>
<security>
<hotlinkCtrl>
<enableHotlinkCtrl>0</enableHotlinkCtrl>
<suffixes>jpeg, png, jpg, gif</suffixes>
<redirectUri></redirectUri>
<allowDirectAccess>1</allowDirectAccess>
<onlySelf>1</onlySelf>
<allowedHosts></allowedHosts>
<matchedHosts></matchedHosts>
</hotlinkCtrl>
</security>
</virtualHostConfig>
The external Apache (outside the Firewall) configure is:
<VirtualHost 202.64.220.xx:80>
ServerName mail.fredho.net
LogLevel warn
ErrorLog logs/error.log
TransferLog logs/access.log
<IfModule mod_proxy.c>
ProxyPass / http://192.168.1.215/
ProxyPassReverse / http://192.168.1.215/
</IfModule>
</VirtualHost>
There're no errors on the external Apache log in reviewing any problem on the proxy.
Note also that I am not enable Apache config in the lsws setup.
Any ideas what I did wrong in the setup for Reverse Proxy?
Thanks.