Ok, here is the virtualserver config for the new machine for one (my main domain) of 2 vhosts:
Directives
For craigtarwater.com:80
DocumentRoot /srv/www/htdocs/ /etc/apache2/vhosts.d/ip-based_vhosts.conf (2)
ServerAdmin admin@craigtarwater.com /etc/apache2/vhosts.d/ip-based_vhosts.conf (3)
<Directory /srv/www/htdocs/>
AllowOverride None /etc/apache2/vhosts.d/ip-based_vhosts.conf (5)
Order allow,deny /etc/apache2/vhosts.d/ip-based_vhosts.conf (6)
Allow from all /etc/apache2/vhosts.d/ip-based_vhosts.conf (7)
UserDir public_html /etc/apache2/vhosts.d/ip-based_vhosts.conf (9)
ServerName craigtarwater.com /etc/apache2/vhosts.d/ip-based_vhosts.conf (10)
ServerAlias www.craigtarwater.com /etc/apache2/vhosts.d/ip-based_vhosts.conf (11)
Here’s the 2nd (still new mchine) virtualhost:
Directives
For playguitarvideos.com:80
DocumentRoot /srv/www/htdocs/playguita … /etc/apache2/vhosts.d/ip-based_vhosts.conf (14)
ServerAdmin admin@playguitarvideos.com /etc/apache2/vhosts.d/ip-based_vhosts.conf (15)
<Directory /srv/www/htdocs/playguitarvideos>
AllowOverride None /etc/apache2/vhosts.d/ip-based_vhosts.conf (17)
Order allow,deny /etc/apache2/vhosts.d/ip-based_vhosts.conf (18)
Allow from all /etc/apache2/vhosts.d/ip-based_vhosts.conf (19)
ScriptAlias /srv/www/cgi-bin/ /cgi-bin … /etc/apache2/vhosts.d/ip-based_vhosts.conf (21)
<Directory /srv/www/cgi-bin>
AllowOverride None /etc/apache2/vhosts.d/ip-based_vhosts.conf (23)
Options +ExecCGI -Includes /etc/apache2/vhosts.d/ip-based_vhosts.conf (24)
Order allow,deny /etc/apache2/vhosts.d/ip-based_vhosts.conf (25)
Allow from all /etc/apache2/vhosts.d/ip-based_vhosts.conf (26)
UserDir public_html /etc/apache2/vhosts.d/ip-based_vhosts.conf (28)
ServerName playguitarvideos.com /etc/apache2/vhosts.d/ip-based_vhosts.conf (29)
ServerAlias www.playguitarvideos.com /etc/apache2/vhosts.d/ip-based_vhosts.conf (30)
Here is the main domain on the actual currently running Fedora machine:
Directives
For craigtarwater.com:80
ServerAdmin admin@craigtarwater.com /etc/httpd/conf/httpd.conf (990)
ServerName craigtarwater.com /etc/httpd/conf/httpd.conf (991)
ServerAlias www.craigtarwater.com /etc/httpd/conf/httpd.conf (992)
DocumentRoot /var/www/html/ /etc/httpd/conf/httpd.conf (993)
<Directory /var/www/html/>
Order allow,deny /etc/httpd/conf/httpd.conf (995)
Allow from all /etc/httpd/conf/httpd.conf (996)
2nd virtualhost on Fedora:
Directives
For playguitarvideos.com:80
DocumentRoot “/var/www/html/playguitarvideos” /etc/httpd/conf/httpd.conf (1006)
ServerName playguitarvideos.com /etc/httpd/conf/httpd.conf (1007)
<Directory “/var/www/html/playguitarvideos”>
allow from all /etc/httpd/conf/httpd.conf (1009)
Options +Indexes /etc/httpd/conf/httpd.conf (1010)
ServerAlias www.playguitarvideos.com /etc/httpd/conf/httpd.conf (1012)
ServerAdmin admin@playguitarvideos.com /etc/httpd/conf/httpd.conf (1013)
Fedora has these only in the main server config file, etc/httpd/httpd.conf
As shown, on SuSE, they are in their own file: /etc/apache2/vosts.d/ip=based_vhosts.conf
So my question is since there is a difference between Apache 2.2.9 (Fedora 9) and Apache2.2.12 (SLES 11 SP3) Should I just append the 2 vhost directives (containers - into the end of the httpd.conf in the new machine, like they are in the the old machine, and comment out the ip-based_vhosts.conf or get rid of it or use a sample file, still using the Apache2 httpd.conf one?
I read a bit ago in an openSuSE forum that another person had my basic problem (ip-based vs. name-based vhosts), and it arose using YaST. Several people in the forum believed the YaST configuration writing it that way is indeed a minor “bug”.
I am likely going to answer my questions by trial & error, but it would be neater if someone here told me what I should do.
Regards, tarzy
[QUOTE=tarzy;16629]I certainly appreciate the advice I’m getting, although I’m so confused at this point I’m waffling about whether to bail out of this installation. It seems where I wen awry was using YaST to setup the http server, and somehow in vhosts.d I have only ip-based_vhosts.conf, and 2 templates. It seems I should have a name-based_vhosts.conf instead. I can clearly see a list of directives for the default server, and each of the two name-based vhosts, along with an edit feature for all 3, in Webmin. It gives me a clear picture, but I still find no name-based vhosts.conf to edit. As mentioned, here’s the output currently, along with the fact that I just don’t know where to turn now. Giving up and redoing is a crummy option, I feel, so I’ll keep twiddling.
linux-2u6o:~ # rcapache2 configtest
httpd2-prefork: Could not reliably determine the server’s fully qualified domain name, using 192.168.1.26 for ServerName
[Mon Sep 30 21:08:39 2013] [error] VirtualHost :80 – mixing * ports and non- ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Mon Sep 30 21:08:39 2013] [error] VirtualHost :80 – mixing * ports and non- ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Mon Sep 30 21:08:39 2013] [warn] NameVirtualHost 192.168.1.26:0 has no VirtualHosts
[Mon Sep 30 21:08:39 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
Syntax OK[/QUOTE]