LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2003, 01:38 PM   #1
richcoosa19
Member
 
Registered: Nov 2002
Location: Rome, GA, USA
Distribution: Slackware 10.1 and Gentoo 2005.1 from Stage 1
Posts: 84

Rep: Reputation: 15
Angry Apache is a pain in my butt!


Ok here goes. I have bind running two different domains, I have both domains configured correctly. I am trying to configure a virtual domain server in Apache. With apache I have the config as follows.:

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
#NameVirtualHost www.toomuchrock.net

#
# 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>
NameVirtualHost 68.60.9.7

<VirtualHost www.toomuchrock.net>
ServerName www.toomuchrock.net
DocumentRoot /home/brittney/html/
</VirtualHost>

What apache is doing is going to the default document root instead of the www.toomuchrock.net document root. Any help would be appreciate.
 
Old 07-08-2003, 01:46 PM   #2
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
Use webmin to setup virtual hosts.. its a LOT easier

I got a virtual running here...
 
Old 07-08-2003, 03:52 PM   #3
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
you have this:

NameVirtualHost 68.60.9.7

<VirtualHost www.toomuchrock.net>
ServerName www.toomuchrock.net
DocumentRoot /home/brittney/html/
</VirtualHost>


Try this:

NameVirtualHost 68.60.9.7

<VirtualHost 68.60.9.7>
ServerName toomuchrock.net
DocumentRoot /home/brittney/html/
</VirtualHost>
 
Old 07-08-2003, 04:09 PM   #4
richcoosa19
Member
 
Registered: Nov 2002
Location: Rome, GA, USA
Distribution: Slackware 10.1 and Gentoo 2005.1 from Stage 1
Posts: 84

Original Poster
Rep: Reputation: 15
Tried setting the virtualhost to the IP and same result. I'm totally clueless.
 
Old 07-08-2003, 04:31 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally posted by richcoosa19
Tried setting the virtualhost to the IP and same result. I'm totally clueless.
Did you restart apache after making your changes?
 
Old 07-08-2003, 06:24 PM   #6
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
make a normal... setup

and make a virtual host file

virtualhosts.conf

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /
ServerName omfg.yahoo.com
</VirtualHost>

Thats the normal jyst.. you can setup a lot of stuff.. but.. heh not gunna go there.

put the virtualhost.conf in /etc/httpd/conf.d

make sure you have a

Include conf.d/*.conf

and you is set
 
  


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
Linux saved my butt again. /bin/bash LinuxQuestions.org Member Success Stories 2 10-01-2005 12:20 AM
Rdesktop kicks butt! Whitehat LinuxQuestions.org Member Success Stories 16 12-11-2004 06:30 PM
Samba Is Kicking My Butt!! pentax9380 Linux - Networking 7 09-28-2004 05:57 PM
My PC becoming a real sore in the butt qanopus General 2 12-26-2002 02:05 AM
Why is Linux with 64Mb RAM so butt slow? Noerr Linux - Distributions 60 07-11-2002 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:46 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
Open Source Consulting | Domain Registration