General NOTE: The general forum has been closed to new posts while we evaluate moderator availability.
This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
02-06-2003, 01:10 AM
|
#1
|
Member
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65
Rep:
|
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.
|
|
|
02-06-2003, 02:36 AM
|
#2
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
02-06-2003, 04:09 AM
|
#3
|
Member
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65
Original Poster
Rep:
|
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.
|
|
|
02-06-2003, 05:20 AM
|
#4
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
02-06-2003, 05:33 AM
|
#5
|
Member
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696
Rep:
|
just put two virtual hosts in your apache config file
|
|
|
02-06-2003, 05:39 AM
|
#6
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
02-07-2003, 12:11 AM
|
#7
|
Member
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65
Original Poster
Rep:
|
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
|
|
|
02-07-2003, 02:20 AM
|
#8
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 04:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|