LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 02-06-2003, 01:10 AM   #1
ethanchic
Member
 
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65

Rep: Reputation: 15
dns or apache


I am configuring my system to become a server, since I'm new to this stuff I there are still many things that I don't know yet.
My question was how will I redirect my server for example I will type in http://mail.myserver.com/ then only the page where my mail page will display and not the default page or I will type in http://www.server.net/ then the default page will be the one to load.
I just want to know what is the configuration or module that I need to enable if there is any.
 
Old 02-06-2003, 02:36 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
ethanchic,

I don't follow your question. Are you trying to setup multiple Apache servers? Or virtualhosts on one server or are you having DNS problems? A bit more info please!

cheers

Jamie...
 
Old 02-06-2003, 04:09 AM   #3
ethanchic
Member
 
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65

Original Poster
Rep: Reputation: 15
No I'm not trying to setup multiple apache and I don't have problem with my dns.
OK I will restate my question, I will write http://main.myserver.com/ then the frontend for my mail will be display ok, then I open again another browser and type http://www.myserver.net/ then the default page will be the one to be displayed right, but then I don't know how it will be done, you wrote about virtualhost then how will it be done.
 
Old 02-06-2003, 05:20 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by ethanchic
I will write http://main.myserver.com/ then the frontend for my mail will be display ok, then I open again another browser and type http://www.myserver.net/ then the default page will be the one to be displayed right, but then I don't know how it will be done, you wrote about virtualhost then how will it be done.
So you want all requests for www.myserver.net to be responded to by main.mysever.com yeah? So any attempt to get to http://www.myserver.net actually gets the web pages on http://main.myserver.com ?

cheers

Jamie...
 
Old 02-06-2003, 05:33 AM   #5
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
just put two virtual hosts in your apache config file
 
Old 02-06-2003, 05:39 AM   #6
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by Noerr
just put two virtual hosts in your apache config file
To expand a little on Noerr's response.

If you do want do what I've asked in my last post then yeah you just use a virtual host on Apache, and have a CNAME entry in your DNS to point name lookups of www.myserver.net to main.myserver.com. There's another active thread of the forum that is covering this at the moment. Have a look at http://www.linuxquestions.org/questi...ght=httpd.conf

HTH

Jamie...
 
Old 02-07-2003, 12:11 AM   #7
ethanchic
Member
 
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65

Original Poster
Rep: Reputation: 15
I already done all the things you suggested but then still the default page came out.
This are the following what I have configured
Listen set to 192.168.19.5:80
BindAddress set to 192.168.19.5
NameVirtualHost set to 192.168.19.5
ServerAlias set to
<VirtualHost 192.168.19.5>
ServerName www.server.net
ServerAlias mail.server.net
</VirtualHost>
VirtualHost set to
<VitrualHost 192.168.19.5>
DocumentRoot /usr/local/apache/htdocs/
ServerName www.server.net
</VirtualHost>

<VirtualHost 192.168.19.5>
DocumentRoot /usr/local/apache/mail/
ServerName mail.server.net
</VirtualHost>
What else wrong with my configuration please help
 
Old 02-07-2003, 02:20 AM   #8
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
So from the command line of your server and from whatever machine you are trying to load the page on you can ping www.server.net, and it returns the correct address yeah?

My virtual hosts look like http://www.linuxquestions.org/questi...022#post217022

You've been restarting Apache after making changes to httpd.conf right?

What does your access and error log tell you? It's gotta be something sooo simple it being missed.

cheers

Jamie...
 
  


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
apache and dns mikew101 Linux - Software 6 07-05-2003 12:54 AM
Apache and DNS Tenchi147 Linux - Software 6 06-02-2003 08:18 PM
DNS with apache SSBN Linux - Networking 1 05-01-2003 12:40 AM
dns for redhat 8.0 using apache danimaldaisy Linux - Networking 1 12-12-2002 02:33 PM
DNS and Apache! eXor Linux - Newbie 5 10-13-2002 05:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 11:19 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