Hello,
I am needing to know if something is affecting the syntax of my httpd.conf file
I have 4 domains and 3 subdomains. They all run fine (of course) on my (5 years now) Sambar/XP box.
The Linux machine serves much quicker, especially database=driven apps like Joomla for instance.
So I must go with Apache and I have been working on learning this OS/machine for the past 6 months.
I subscribe to a local Linux users group and they are literate and we thought my config looks OK.
However, I read something this morning about a hosts file pertaining to local domains.
Also, I have no custom vhosts.d, I only have my httpd.conf, which I enclose the applicable portion for review:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin
admin@craigtarwater.com
ServerName
www.craigtarwater.com
DocumentRoot /var/www/html/
<Directory /var/www/html/>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@craigtarwater.com
ServerName guitar.craigtarwater.com
DocumentRoot /var/www/html/guitar
<Directory /var/www/html/guitar>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@craigtarwater.com
ServerName vintage.craigtarwater.com
DocumentRoot /var/www/html/vintage
<Directory /var/www/html/vintage>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@craigtarwater.com
ServerName motorcycle.craigtarwater.com
DocumentRoot /var/www/html/motorcycle
<Directory /var/www/html/motorcycle>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@northwestrodeohorse.com
ServerName
www.northwestrodeohorse.com
DocumentRoot /var/www/html/northwestrodeohorse
<Directory /var/www/html/northwestrodeohorse >
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@tlcevents.org
ServerName
www.tlcevents.org
DocumentRoot /var/www/html/tlcevents
<Directory /var/www/html/tlcevents >
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin
admin@getafreeguitar.com
ServerName
www.getafreeguitar.com
DocumentRoot /var/www/html/getafreeguitar
<Directory /var/www/html/getafreeguitar >
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
ServerName 67.158.227.234
The last line appeared when I made a change using my control app, Webmin.
I have Squid installed and it has a config file, but I think it's default.
Last night I made more changes, but still the same problem, which is.........
2 of these domains show the index of the site for the default server, and they should show their own index pages.
The machine is AMD_64 with 1GB RAM. It's only for serving.
I have checked all the paths, and they are correct on my LAN doing it by path instead of URL.
I would certainly welcome any ideas.
tarzy