LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-07-2011, 05:49 PM   #16
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled

i am using CentOS 5.6
 
Old 09-07-2011, 05:55 PM   #17
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Ok good to know, all of the files I mentioned should be where they are supposed to be!

Good luck and let me know if it works for you! You probably need to setup a free DNS account with someone like http://dyn.com.

Last edited by bskrakes; 09-07-2011 at 05:57 PM.
 
Old 09-07-2011, 05:55 PM   #18
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
i am using cent os 5.6
 
Old 09-07-2011, 05:56 PM   #19
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
woops didnt know it went to different page haha i will let you know and im using zonomi
 
Old 09-07-2011, 06:15 PM   #20
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
tested sytax ok then tried to
Quote:
service httpd restart
and it says failed
 
Old 09-07-2011, 06:21 PM   #21
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Ok try stop: service httpd stop
Then try to start it: service httpd start

Is there any other output from the failed message?
 
Old 09-07-2011, 06:23 PM   #22
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
stop then start still faild with no output
 
Old 09-07-2011, 06:30 PM   #23
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
i have looked in the apache error log do you want to see that line?
 
Old 09-07-2011, 06:38 PM   #24
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Yes please show me log =)
 
Old 09-07-2011, 06:50 PM   #25
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
it was something to do with my error log i removed error logging from VH config and it started
 
Old 09-07-2011, 06:53 PM   #26
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
rite that works but now another question is i have two domains 1 for my main site then 1 for another both pointing to my public ip how do i configure apache for both them?
 
Old 09-07-2011, 06:55 PM   #27
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
Domain 1
Domain 2

and they both go to my main site
 
Old 09-07-2011, 07:17 PM   #28
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
First the log file error was probably because of the path you specified, your paths may be different than mine because we configure servers differently.

It depends on how you have setup the vhosts, refer to my example above (each vhost needs to be configured differently).

Can you show me how yours are configured?
 
Old 09-07-2011, 07:35 PM   #29
deanspink1986
Member
 
Registered: Sep 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
NameVirtualHost *:80
<VirtualHost *:80>
Alias bassline-madness.co.uk *bassline-madness.co.uk
ServerAdmin dean-s@live.co.uk
DocumentRoot /var/www/html/Bassline-Madness
ServerName localhost.localdomain
</VirtualHost>

<VirtualHost *:80>
Alias bm-filehost.co.cc *bm-filehost.co.cc
ServerAdmin dean-s@live.co.uk
DocumentRoot /var/www/html/BM-Filehost
ServerName localhost.localdomain
</VirtualHost>
 
Old 09-07-2011, 08:42 PM   #30
bskrakes
Member
 
Registered: Sep 2006
Location: Canada, Alberta
Distribution: RHEL 4 and up, CentOS 5.x, Fedora Core 5 and up, Ubuntu 8 and up
Posts: 251

Rep: Reputation: 32
Your server name is incorrect for both virtual hosts. They should be:

Quote:
ServerName bassline-madness.co.uk
AND

Quote:
ServerName bm-filehost.co.cc
This is how apache knows which site is being requested.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
debian lenny - all virtual hosts lead to first virtual host rantastic Linux - Server 2 04-21-2010 10:32 PM
Virtual Hosts ayomacro Linux - Server 1 02-29-2008 07:00 PM
virtual hosts Four Ubuntu 1 03-12-2007 02:30 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 07:29 AM
virtual hosts... Digital_Err0r Linux - Newbie 25 03-25-2004 04:58 PM


All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration