public_html setup

I created a virtual server and thought I had all the Apache stuff setup right including a default web page. However, when the server was created, the html_public directory exists, but it has no web page. The only .htaccess file that was created was created in the ‘stats’ directory.

Any pointers on where I should look to see what I missed?

thanks,
tony

I deleted the server and recreated it.
Now I have several html files in the public_html directory, no .htaccess file but when I (after clearing the browser cache) go to www.domainName.com I still get the directory index listing of ‘/’ with no content. The IP address displayed is correct and I get the same page whether I use the IP or the FQDN.

Also, there are no entries in either the access_log or the error_log so I’m not even sure if this is translating to the right public_html directory.

Additional info… I can FTP to the site and see the correct public_html directory. However, when I try to got to webmin (http://www.domainName.com:10000 it times out.

And more info… Restarting httpd gives:
Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using linux1.ez-merchant-hosting.com for ServerName
[Sat Nov 15 00:34:27 2008] [warn] NameVirtualHost 192.168.101.2:80 has no VirtualHosts
[Sat Nov 15 00:34:27 2008] [warn] NameVirtualHost 206.72.99.14:80 has no VirtualHosts

One more configuration note for this machine that might help someone help me…

The public IP is 206.72.99.14 (actually there are a range of addresses) and the router forwards these requests into my internal network. So http requests to 206.72.99.14 are forwarded to 192.168.101.2.

There’s some issue with the vm/httpd relationship for this type of configuration and I can’t figure out what’s up. My guess is that when the request comes into httpd that it sees it on address 192.168.101.2 versus the virtual server IP of 206.99.72.14. DNS and other areas need the external address while some things may require the internal address.

Could really use some help here!

I changed the setting for what IP to setup DNS on to the external address. Now, names should be resolved correctly but the httpd virtual server is still not going to the right place.

Here’s the entry that VM created in httpd.conf:

[code:1]
<VirtualHost 192.168.101.2:80>
SuexecUserGroup "#501" "#502"
ServerName ez-ms.com
ServerAlias www.ez-ms.com
ServerAlias webmail.ez-ms.com
ServerAlias admin.ez-ms.com
ServerAlias lists.ez-ms.com
DocumentRoot /home/ez-ms.com/public_html
ErrorLog /home/ez-ms.com/logs/error_log
CustomLog /home/ez-ms.com/logs/access_log combined
ScriptAlias /cgi-bin/ /home/ez-ms.com/cgi-bin/
ScriptAlias /awstats /home/ez-ms.com/cgi-bin
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory /home/ez-ms.com/public_html>
Options -Indexes IncludesNOEXEC FollowSymLinks ExecCGI
allow from all
AllowOverride All
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/ez-ms.com/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/ez-ms.com/fcgi-bin/php5.fcgi .php5
</Directory>
<Directory /home/ez-ms.com/cgi-bin>
allow from all
</Directory>
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.ez-ms.com
RewriteRule ^(.) https://ez-ms.com:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.ez-ms.com
RewriteRule ^(.
) https://ez-ms.com:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
IPCCommTimeout 31
<Files awstats.pl>
AuthName "ez-ms.com statistics"
AuthType Basic
AuthUserFile /home/ez-ms.com/.awstats-htpasswd
require valid-user
</Files>
PerlRequire /etc/webmin/virtualmin-google-analytics/apachemod.pl
PerlOutputFilterHandler Virtualmin::GoogleAnalytics
Alias /dav /home/ez-ms.com/public_html
Alias /pipermail /var/lib/mailman/archives/public
<Location /dav>
DAV On
AuthType Basic
AuthName ez-ms.com
AuthUserFile /home/ez-ms.com/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php5
</Location>
RedirectMatch /cgi-bin/mailman/([^/])(.) https://ez-ms.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
RedirectMatch /mailman/([^/])(.) https://ez-ms.com:10000/virtualmin-mailman/unauthenticated/$1.cgi$2
<Location /svn>
DAV svn
SVNParentPath /home/ez-ms.com/svn
AuthType Basic
AuthName ez-ms.com
AuthUserFile /home/ez-ms.com/etc/svn.basic.passwd
Require valid-user
AuthzSVNAccessFile /home/ez-ms.com/etc/svn-access.conf
Satisfy Any
</Location>
</VirtualHost>
[/code:1]

Post edited by: tbirnseth, at: 2008/11/14 20:52

Post edited by: tbirnseth, at: 2008/11/14 21:05

Post edited by: tbirnseth, at: 2008/11/14 22:34

Post edited by: tbirnseth, at: 2008/11/15 07:22<br><br>Post edited by: tbirnseth, at: 2008/11/15 09:15