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]