Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th December 2008, 10:48 PM
tarzy Offline
Registered User
 
Join Date: Nov 2008
Posts: 8
Smile Unable so far to resolve virtualhost problem

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
Reply With Quote
  #2  
Old 10th December 2008, 04:31 PM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473
Your ServerName needs to specify a port, and I'd recommend using a hostname rather than an IP, in case (however small of a chance) that your IP changes. Try:
Code:
ServerName www.craigtarwater.com:80
And I'd recommend that in each <VirtualHost> that is a TLD, i.e. www.craigtarwater.com use just craigtarwater.com then use a ServerAlias line to include www.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
Reply

Tags
problem, resolve, unable, virtualhost

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to resolve "LABEL=/boot" for F7 but no problem for FC6 zwfed EOL (End Of Life) Versions 3 8th June 2007 01:36 PM
unable to resolve sjoerd222 Servers & Networking 1 1st May 2007 04:22 PM
unable to resolve by Hostname jim Servers & Networking 6 18th February 2006 03:21 PM
unable to resolve (0,1,2).pool.ntp.org robatino Servers & Networking 12 4th August 2005 05:41 AM


Current GMT-time: 00:00 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat