I have a test server on a private network (IP 192.168.101.2). I have public addresses that get forwarded by the router to the server on the private network. For instance,
www.ez-ms.com resolves to the public address 206.72.99.14. The router forwards this to 192.168.101.2.
All pretty straight forward.
I changed my template to use the public address for DNS. I left the VM shared address as "From network interface" which eth0 resolves to 192.168.101.2.
All is fine so far. DNS resolves correctly and the server is setup in it's correct /home/ez-ms.com directory.
FTP via a browser to 'ftp.ez-ms.com' works fine. I get prompted for the user/password and it places me at the virtual root /home/ez-ms.com.
However, any access to the 'http' protocol does not resolve to the virtual root.
In httpd.conf:
| Code: |
NameVirtualHost 192.168.101.2:80
NameVirtualHost 206.72.99.14:80
|
and the Virtual Server was configured by VM to be:
| Code: |
<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>
|
When I try to access
http://www.ez-ms.com I get:
| Code: |
Forbidden
You don't have permission to access / on this server.
Apache/2.2.8 (Fedora) Server at www.ez-ms.com Port 80
|
I do not know what to do next... I'm sure it's some funny related to the public/private interfaces. I've searched the archives and found some info, but nothing that offers a solution.
Can anyone help?
thanks,
tony