LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-17-2003, 09:08 PM   #1
BrettPower
Member
 
Registered: Aug 2003
Location: Daytona Beach, FL
Distribution: Gentoo and FC3
Posts: 65

Rep: Reputation: 15
Fedora Core 1 - Apache questions


Alright, folks. First time playing with Apache on Fedora Core 1 (which is running great). Everything is doing as it is suppose to, except for one tiny portion.

I currently have 2 domains that I trying to serve on my Apache server. Domain A works great, no problems. That being said, domain B works, but only partially.

Since I added the second domain, I knocked a hold in my firewall on Port 85 which redirects to my Apache server, which also hosts Domain A. I have setup Apache to direct any request from Port 80 to one directory, and all requests from Port 85 to another directory. However, when I attempt to access http://69.22.121.165:85, I get the stock Apache web server page. Everything looks good, but I know it isn't.

Any suggestions here? I have a feeling it is something really small.

Thanks, all.
-Brett
 
Old 12-17-2003, 11:24 PM   #2
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
I have a suggestion if you don't NEED it on a different port. Sounds like you need to supply an overriding DocumentRoot in your NameVirtualServer environment in httpd.conf.

If you don't know what I'm talking about, I'll be a little more verbose.
Also, any particular reason you want to run it on a different port? You don't have to...
 
Old 12-18-2003, 06:00 AM   #3
BrettPower
Member
 
Registered: Aug 2003
Location: Daytona Beach, FL
Distribution: Gentoo and FC3
Posts: 65

Original Poster
Rep: Reputation: 15
nah, there is no reason that I chose Port 85 for the second domain. If I can have both flow through the same port and see no performance degragation, let's do it then.

As far as the explanation goes, verbos sounds good!

Thanks, pal.
 
Old 12-18-2003, 07:20 AM   #4
amp2000
Member
 
Registered: Oct 2001
Location: Dublin, Ireland
Distribution: Mandrake 9.0 mostly!
Posts: 303

Rep: Reputation: 30
Ye, forget port 85, what Wolven means is you need to set up Namebased virtual hosts in apache. You need to edit your httpd.conf & put something like this at the end of it
Code:
NameVirtualHost 192.168.2.2
<VirtualHost 192.168.2.2>
 ServerName your-domain.com
ServerAlias your-domain.com *.your-domain.com
  DocumentRoot /var/www/html/durban
</VirtualHost>

<VirtualHost 192.168.2.2>
   ServerName your-domain2.com
  ServerAlias your-domain2.com *.your-domain2.com
   DocumentRoot /var/www/html/fish
</VirtualHost>
You also need to set up DNS but I cant help you with that right now cos I'm still trying to figure it out myself.
 
Old 01-14-2004, 06:11 PM   #5
Wolven
Member
 
Registered: Jan 2003
Posts: 195

Rep: Reputation: 30
heheh.. thanks, mate. Been out of town a bit lately. Amp2000: Post me a message or PM or whatever me a message if you want help with the DNS issues. BrettPower, did you get it all working properly?

Let me know...

:_)
 
  


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
questions on fedora core 4 boxerboy Fedora 2 09-10-2005 03:06 PM
Just a few questions on Fedora Core 4 ZakuSage Fedora 3 06-23-2005 12:47 AM
some questions about fedora core 3 in my own pc jcd3206 Linux - Newbie 1 05-14-2005 01:27 AM
Fedora Core 3 questions misagh Fedora 4 04-11-2005 05:47 PM
Fedora Core T2 Questions jlacroix Fedora 0 04-27-2004 10:01 AM

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

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