httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Reichenbacher <fr...@mollynet.com>
Subject [users@httpd] Installed a router -- what a mistake!
Date Sun, 03 Oct 2004 04:25:36 GMT
My consultant at work talked me into installing a router on my home LAN,
which has been gatewayed through my RH 7.0 box on which I have an Apache
webserver (1.3.23) and qmail email server. 

The router is the Multitech RF560VPN. It sits between the DSL modem and
the webserver and the rest of the LAN. Ports 80, 25, and 110 are
redirected to the RH server at the LAN address of 192.168.1.1. 

My one static IP, 66.93.153.62 is pointed to mollynet.com on the RH box.
The httpd.conf includes www.mollynet.com plus a bunch of Name virt
hosts. Here are samples of the httpd.conf file:

ServerType standalone
ServerRoot /usr/local/apache
PidFile /usr/local/apache/logs/httpd.pid
ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 150
MaxRequestsPerChild 0
Port 80
Loglevel warn

<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

User nobody
Group nobody

ServerAdmin webmaster@mollynet.com
ServerName mollynet.com
DocumentRoot /var/www/html
DirectoryIndex index.html index.htm index.cgi

...

<Directory /var/www/html>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

<Directory /var/www/soccer>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

<Directory /var/www/hypermagine>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

...

LogFormat "%h %l %u %t %>s %b \"%r\" \"%{Referer}i\" \"%{User-Agent}i\""
combined
CustomLog /var/log/httpd/transfer_log combined
ErrorLog /usr/local/apache/logs/error_log

NameVirtualHost 66.93.153.62

<Virtualhost 66.93.153.62:80>
ServerAdmin webmaster@mollynet.com
DocumentRoot /var/www/html
ServerName www.mollynet.com
LogFormat combined
TransferLog "|/usr/local/apache/bin/rotatelogs
/var/log/httpd/www_access_log 86400"
ErrorLog "|/usr/local/apache/bin/rotatelogs /var/log/httpd/www_error_log
86400"
ScriptAlias /cgi-bin/ /var/www/html/cgi-bin/
ScriptAlias /_vti_bin/_vti_adm/ /var/www/html/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_aut/ /var/www/html/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /var/www/html/_vti_bin
ScriptLog /var/log/httpd/www_cgi_log
</Virtualhost>

<Virtualhost 66.93.153.62:80>
ServerAdmin longfellow@mollynet.com
DocumentRoot /var/www/hypermagine
ServerName hypermagine.mollynet.com
LogFormat combined
TransferLog "|/usr/local/apache/bin/rotatelogs
/var/log/httpd/hypermagine_access_log 86400"
ErrorLog "|/usr/local/apache/bin/rotatelogs
/var/log/httpd/hypermagine_error_log 86400"
ScriptAlias /_vti_bin/_vti_adm/ /var/www/hypermagine/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_aut/ /var/www/hypermagine/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /var/www/hypermagine/_vti_bin
</Virtualhost>

<Virtualhost 66.93.153.62:80>
ServerAdmin shearer@mollynet.com
DocumentRoot /var/www/soccer
ServerName soccer.mollynet.com
LogFormat combined
TransferLog "|/usr/local/apache/bin/rotatelogs
/var/log/httpd/soccer_access_log 86400"
ErrorLog "|/usr/local/apache/bin/rotatelogs
/var/log/httpd/soccer_error_log 86400"
ScriptAlias /_vti_bin/_vti_adm/ /var/www/soccer/_vti_bin/_vti_adm/
ScriptAlias /_vti_bin/_vti_aut/ /var/www/soccer/_vti_bin/_vti_aut/
ScriptAlias /_vti_bin/ /var/www/soccer/_vti_bin
</VirtualHost>

As any of you can see by pointing your browsers to the website, that
only the first host in httpd.conf is getting served up, no matter what
URL you point it to. However, what's really puzzling is that the
transfer and log files specified for the first server (www_access_log
86400, www_error_log 86400) are not being used to log the server access
hits. Instead, they are being captured in the default transfer_log and
error_log. The virtual server log files are not getting written to at
all.

Now, before I installed that blasted router, with the RH box as the
firewalled LAN gateway, these virtual servers worked fine. And so did
the specified log files.

What happened? I'm committed to this bloody thing now, so there must be
a new httpd.conf setting that I have to implement that I am ignorant of.
Anyone got a clue?

Frank

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message