Page 1 of 1

Problem Configuring Virtual Hosts

PostPosted: 02. May 2006 15:53
by Roxie
Linux Distro: Fedora Core 3, all patches up to date
XAMPP Ver: XAMPP for Linux v1.4.14

I am having problems getting the httpd.conf file properly configured to enable virtual hosts on a machine. I've tried comparing what I've written to other machines where things are running properly (non-XAMPP, configured by someone else), and to the Apache documentation, and I cannot figure out what I have wrong. I would appreciate whatever help or guidance could be offered.

When I try putting my new httpd.conf file in place and restarting XAMPP, I get the following:
Starting XAMPP for Linux 1.4.14...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.


The working httpd.conf has:
Code: Select all
NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost 192.168.0.46>
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /opt/lampp/htdocs
  ServerName newpsm.profsurv.com
  ServerAlias newpsm webdev
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /opt/lampp/htdocs
  ServerName newpsm.profsurv.com
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /home/sites/www.profsurv.com/web
  ServerName www.profsurv.com
  ErrorLog /home/sites/www.profsurv.com/logs/psmweb-error_log
  CustomLog /home/sites/www.profsurv.com/logs/psmweb-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /home/sites/subs.profsurv.com/web
  ServerName subs.profsurv.com
  ErrorLog /home/sites/subs.profsurv.com/logs/psmsubs-error_log
  CustomLog /home/sites/subs.profsurv.com/logs/psmsubs-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /home/sites/store.profsurv.com/web
  ServerName store.profsurv.com
  ErrorLog /home/sites/store.profsurv.com/logs/psmstore-error_log
  CustomLog /home/sites/store.profsurv.com/logs/psmstore-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /opt/lampp/htdocs/newpsm
  ServerName dev.profsurv.com
</VirtualHost>

Alias /newpsm "/home/sites/www.profsurv.com/web/"
Alias /dev "/opt/lampp/htdocs/newpsm/"


The 'new and improved' httpd.conf, that will not start up properly, has the following:
Code: Select all
NameVirtualHost 216.127.141.196

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName www.profsurv.com
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/www.profsurv.com/web/
  ErrorLog /home/sites/www.profsurv.com/logs/psmweb-error_log
  CustomLog /home/sites/www.profsurv.com/logs/psmweb-access_log common
  Alias /newpsm "/home/sites/www.profsurv.com/web/"
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^www.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://www.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName subs.profsurv.com
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/subs.profsurv.com/web/
  ErrorLog /home/sites/subs.profsurv.com/logs/psmsubs-error_log
  CustomLog /home/sites/subs.profsurv.com/logs/psmsubs-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^subs.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://subs.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

Alias /phpmyadmin "/opt/lampp/phpmyadmin"
Alias /phpsqliteadmin "/opt/lampp/phpsqliteadmin"

<VirtualHost 216.127.141.196>
  ServerName store.profsurv.com
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/store.profsurv.com/web/
  ErrorLog /home/sites/store.profsurv.com/logs/psmstore-error_log
  CustomLog /home/sites/store.profsurv.com/logs/psmstore-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName banners.gitcamerica.com
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/banners.gitcamerica.com/web/
  ErrorLog /home/sites/banners.gitcamerica.com/logs/newpsm-error_log
  CustomLog /home/sites/banners.gitcamerica.com/logs/newpsm-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName mail.gitcamerica.com
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/mail.gitcamerica.com/web/
  ErrorLog /home/sites/mail.gitcamerica.com/logs/gitcmail-error_log
  CustomLog /home/sites/mail.gitcamerica.com/logs/gitcmail-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName ftp.gitcamerica.com
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/ftp.gitcamerica.com/web/
  ErrorLog /home/sites/ftp.gitcamerica.com/logs/gitcftp-error_log
  CustomLog /home/sites/ftp.gitcamerica.com/logs/gitcftp-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName www.gitcamerica.com
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/www.gitcamerica.com/web/
  ErrorLog /home/sites/www.gitcamerica.com/logs/gitcwww-error_log
  CustomLog /home/sites/www.gitcamerica.com/logs/gitcwww-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName www.gismonitor.com
  ServerAdmin webmaster@gismonitor.com
  DocumentRoot /home/sites/www.gismonitor.com/web/
  ErrorLog /home/sites/www.gismonitor.com/logs/gismwww-error_log
  CustomLog /home/sites/www.gismonitor.com/logs/gismwww-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName www.eomonline.com
  ServerAdmin webmaster@eomonline.com
  DocumentRoot /home/sites/www.eomonline.com/web/
  ErrorLog /home/sites/www.eomonline.com/logs/eomwww-error_log
  CustomLog /home/sites/www.eomonline.com/logs/eomwww-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName www.profsurv.net
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/www.profsurv.net/web/
  ErrorLog /home/sites/www.profsurv.net/logs/psmnet-error_log
  CustomLog /home/sites/www.profsurv.net/logs/psmnet-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName www.profsurv.org
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/www.profsurv.org/web/
  ErrorLog /home/sites/www.profsurv.org/logs/psmorg-error_log
  CustomLog /home/sites/www.profsurv.org/logs/psmorg-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerName dev.profsurv.com
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /opt/lampp/htdocs/newpsm/
  ErrorLog /home/sites/dev.profsurv.com/logs/devpsm-error_log
  CustomLog /home/sites/dev.profsurv.com/logs/devpsm-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

<VirtualHost *>
  ServerName newpsm.profsurv.com
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /opt/lampp/htdocs/
  ErrorLog /home/sites/newspsm.profsurv.com/logs/newpsm-error_log
  CustomLog /home/sites/newpsm.profsurv.com/logs/newpsm-access_log common
  # RewriteEngine on
  # RewriteCond %{HTTP_HOST}                !^216.127.141.196(:80)?$
  # RewriteCond %{HTTP_HOST}                !^store.profsurv.com(:80)?$ [NC]
  # RewriteRule ^/(.*)                      http://store.profsurv.com/$1 [L,R]
  # RewriteOptions inherit
  # BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
    AddHandler cgi-wrapper .cgi
    AddHandler cgi-wrapper .pl
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php
  # END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>

[/quote]

Still Trying: Virtual Hosts

PostPosted: 09. May 2006 16:32
by Roxie
I'm still having problems getting Virtual Hosts properly configured, and could really use some help or advice.

XAMPP starts up properly with this httpd.conf:
Code: Select all
NameVirtualHost *

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost 192.168.0.46>
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /opt/lampp/htdocs
  ServerName newpsm.profsurv.com
  ServerAlias newpsm webdev
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /opt/lampp/htdocs
  ServerName newpsm.profsurv.com
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /home/sites/www.profsurv.com/web
  ServerName www.profsurv.com
  ErrorLog /home/sites/www.profsurv.com/logs/psmweb-error_log
  CustomLog /home/sites/www.profsurv.com/logs/psmweb-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /home/sites/subs.profsurv.com/web
  ServerName subs.profsurv.com
  ErrorLog /home/sites/subs.profsurv.com/logs/psmsubs-error_log
  CustomLog /home/sites/subs.profsurv.com/logs/psmsubs-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /home/sites/store.profsurv.com/web
  ServerName store.profsurv.com
  ErrorLog /home/sites/store.profsurv.com/logs/psmstore-error_log
  CustomLog /home/sites/store.profsurv.com/logs/psmstore-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin profsurv@profsurv.com
  DocumentRoot /opt/lampp/htdocs/newpsm
  ServerName dev.profsurv.com
</VirtualHost>


However, XAMPP starts up with the following error:
/opt/lampp/lampp restart
Stopping XAMPP for Linux 1.4.14...
XAMPP: Stopping Apache with SSL...
XAMPP: Stopping MySQL...
XAMPP: Stopping ProFTPD...
XAMPP stopped.
Starting XAMPP for Linux 1.4.14...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum http://community.apachefriends.org/f/
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

when set with the following httpd.conf:
Code: Select all
NameVirtualHost 216.127.141.195

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/www.profsurv.com/web
  ServerName www.profsurv.com
  ErrorLog /home/sites/www.profsurv.com/logs/psmweb-error_log
  CustomLog /home/sites/www.profsurv.com/logs/psmweb-access_log common
  Alias /newpsm "/home/sites/www.profsurv.com/web"
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/subs.profsurv.com/web
  ServerName subs.profsurv.com
  ErrorLog /home/sites/subs.profsurv.com/logs/psmsubs-error_log
  CustomLog /home/sites/subs.profsurv.com/logs/psmsubs-access_log common
</VirtualHost>


<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/store.profsurv.com/web
  ServerName store.profsurv.com
  ErrorLog /home/sites/store.profsurv.com/logs/psmstore-error_log
  CustomLog /home/sites/store.profsurv.com/logs/psmstore-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/banners.gitcamerica.com/web
  ServerName banners.gitcamerica.com
  ErrorLog /home/sites/banners.gitcamerica.com/logs/newpsm-error_log
  CustomLog /home/sites/banners.gitcamerica.com/logs/newpsm-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/mail.gitcamerica.com/web
  ServerName mail.gitcamerica.com
  ErrorLog /home/sites/mail.gitcamerica.com/logs/gitcmail-error_log
  CustomLog /home/sites/mail.gitcamerica.com/logs/gitcmail-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/ftp.gitcamerica.com/web
  ServerName ftp.gitcamerica.com
  ErrorLog /home/sites/ftp.gitcamerica.com/logs/gitcftp-error_log
  CustomLog /home/sites/ftp.gitcamerica.com/logs/gitcftp-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@gitcamerica.com
  DocumentRoot /home/sites/www.gitcamerica.com/web
  ServerName www.gitcamerica.com
  ErrorLog /home/sites/www.gitcamerica.com/logs/gitcwww-error_log
  CustomLog /home/sites/www.gitcamerica.com/logs/gitcwww-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@gismonitor.com
  DocumentRoot /home/sites/www.gismonitor.com/web
  ServerName www.gismonitor.com
  ErrorLog /home/sites/www.gismonitor.com/logs/gismwww-error_log
  CustomLog /home/sites/www.gismonitor.com/logs/gismwww-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@eomonline.com
  DocumentRoot /home/sites/www.eomonline.com/web
  ServerName www.eomonline.com
  ErrorLog /home/sites/www.eomonline.com/logs/eomwww-error_log
  CustomLog /home/sites/www.eomonline.com/logs/eomwww-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/www.profsurv.net/web
  ServerName www.profsurv.net
  ErrorLog /home/sites/www.profsurv.net/logs/psmnet-error_log
  CustomLog /home/sites/www.profsurv.net/logs/psmnet-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /home/sites/www.profsurv.org/web
  ServerName www.profsurv.org
  ErrorLog /home/sites/www.profsurv.org/logs/psmorg-error_log
  CustomLog /home/sites/www.profsurv.org/logs/psmorg-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /opt/lampp/htdocs/newpsm
  ServerName dev.profsurv.com
  ErrorLog /home/sites/dev.profsurv.com/logs/devpsm-error_log
  CustomLog /home/sites/dev.profsurv.com/logs/devpsm-access_log common
</VirtualHost>

<VirtualHost 216.127.141.196>
  ServerAdmin webmaster@profsurv.com
  DocumentRoot /opt/lampp/htdocs
  ServerName newpsm.profsurv.com
  ErrorLog /home/sites/newspsm.profsurv.com/logs/newpsm-error_log
  CustomLog /home/sites/newpsm.profsurv.com/logs/newpsm-access_log common
</VirtualHost>


I've Googled for other advice and documentation on virtual hosts in Apache, and I just can't find anything I've done wrong. Can anyone help me? Please?

Nevermind

PostPosted: 09. May 2006 19:25
by Roxie
I managed to find my problem. There were a very few small - and very hard to spot - typos in my Virtual Host settings. A couple of log files were not named what I had typed, and one had a different typo in the path. Once these were corrected, everything was fine.