LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2005, 09:22 PM   #1
idot
Member
 
Registered: Mar 2005
Location: Ohio
Distribution: Mandrake 10.1
Posts: 32

Rep: Reputation: 15
Virtual hosting question


I'm trying to set up a second domain in apache but can't seem to get it to work. Both domain resolve to one - tygertech.org works but braumbergers info resolves to tygertech.org.

httpd config

NameVirtualHost xx.xxx.xxx.xxx - my ip

<VirtualHost *:80>
ServerName braumbergers.info
ServerAlias braumbergers.info *.braumbergers.info
DocumentRoot "/var/www/html/braumberger"
</VirtualHost
 
Old 08-05-2005, 09:40 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: Virtual hosting question

Change your config to look like this:

NameVirtualHost *:80

<VirtualHost *>
ServerName braumbergers.info
ServerAlias braumbergers.info *.braumbergers.info
DocumentRoot "/var/www/html/braumberger"
</VirtualHost>

Then restart apache.
 
Old 08-05-2005, 10:10 PM   #3
idot
Member
 
Registered: Mar 2005
Location: Ohio
Distribution: Mandrake 10.1
Posts: 32

Original Poster
Rep: Reputation: 15
Here's the current httpd config

NameVirtualHost *:80

<VirtualHost *>
ServerName braumbergers.info
ServerAlias braumbergers.info *.braumbergers.info
DocumentRoot "/var/www/html/braumberger"
</VirtualHost>

<VirtualHost *>
ServerName tygertech.org
ServerAlias tygertech.org *.tygertech.org
DocumentRoot "/var/www/html"
</VirtualHost>

Both domains resolve to braumbergers.info
 
Old 08-06-2005, 12:36 AM   #4
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin you@yourdomain.com
ServerPath /var/www
DocumentRoot /var/www/html
ScriptAlias /cgi-bin /var/www/cgi-bin
DirectoryIndex index.html index.htm index.php
ServerName www.yourdomain.com
ErrorLog /var/log/httpd/yourdomain-error_log
CustomLog /var/log/httpd/yourdomain-access_log common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin you@yourotherdomain.com
ServerPath /var/www2
DocumentRoot /var/www2/html
ScriptAlias /cgi-bin /var/www2/cgi-bin
DirectoryIndex index.html index.htm index.php
ServerName www.yourotherdomain.com
ErrorLog /var/log/httpd/yourotherdomain-error_log
CustomLog /var/log/httpd/yourotherdomain-access_log common
</VirtualHost>
 
Old 08-08-2005, 02:28 PM   #5
idot
Member
 
Registered: Mar 2005
Location: Ohio
Distribution: Mandrake 10.1
Posts: 32

Original Poster
Rep: Reputation: 15
NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin jbraumberger@neo.rr.com
ServerPath /var/www
DocumentRoot /var/www/html
ScriptAlias /cgi-bin /var/www/cgi-bin
DirectoryIndex index.html index.htm index.php
ServerName www.tygertech.org
ErrorLog /var/log/httpd/tygertech.org-error_log
CustomLog /var/log/httpd/tygertech.org-access_log common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin jbraumberger@neo.rr.com
ServerPath /var/www
DocumentRoot /var/www/html/braumberger
ScriptAlias /cgi-bin /var/www/cgi-bin
DirectoryIndex index.html index.htm index.php
ServerName www.braumberger.info
ErrorLog /var/log/httpd/braumberger.info-error_log
CustomLog /var/log/httpd/braumberger.info-access_log common
</VirtualHost>


did this and still braumberger.info resolve to tygertech.org
Sorry for slow reply was out of town for the weekend.
 
  


Reply



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
virtual hosting setenv02 Linux - General 6 05-05-2005 02:35 AM
Virtual Hosting Thom_Redhat Fedora 0 01-14-2005 07:26 AM
Virtual hosting/ domain question Kovacs Linux - Networking 2 11-23-2004 05:55 AM
Virtual Hosting - what does it actually do? gevers1 Linux - General 3 02-01-2004 09:28 AM
E-mail virtual hosting question epicserve Linux - Software 0 11-30-2003 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:53 AM.

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