LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2004, 07:02 PM   #1
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Rep: Reputation: 15
Fedora Apache drive me nut


I have a problem with apache. Ussualy after bringing up the apache I type:
http://ip/~user/ and it point to user's html folder. Now, I type http://ip/~user1/ it point to user1's html folder but if I type http://ip/~user2/ it still point to user1's folder. Same thing happen with virtual server. The apache keep pointing to the first virtual server. For example: I have virtual serverA & virtual serverB. If I put:
Code:
<VirtualHost *>
	DocumentRoot /home/allsites/siteA/html
	ServerName siteA.com
	ServerAlias www.siteA.com
	ErrorLog home/allsites/siteA/log/error_log
</VirtualHost>

<VirtualHost *>
	DocumentRoot /home/allsites/siteB/html
	ServerName siteB.com
	ServerAlias www.siteB.com
	ErrorLog home/allsites/siteB/log/error_log
</VirtualHost>
It will point to SiteA but if I put:
Code:
<VirtualHost *>
	DocumentRoot /home/allsites/siteB/html
	ServerName siteB.com
	ServerAlias www.siteB.com
	ErrorLog home/allsites/siteB/log/error_log
</VirtualHost>
<VirtualHost *>
	DocumentRoot /home/allsites/siteA/html
	ServerName siteA.com
	ServerAlias www.siteA.com
	ErrorLog home/allsites/siteA/log/error_log
</VirtualHost>
It will point to siteB. How am I going to fix it?

Thanks
 
Old 01-10-2004, 07:59 PM   #2
drkfir5
Member
 
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 41

Rep: Reputation: 15
It seems a simple matter. The first document root it comes across is the first one you will be directed to. In your place I would RTFM.
 
Old 03-06-2004, 04:25 PM   #3
MuratKurt
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Hello,
I have the same problem, but being a newbei I really did not understand what I am supposed to do.
Can you give any ideas?

Have a nice day.
 
Old 03-06-2004, 04:47 PM   #4
Red Squirrel
Senior Member
 
Registered: Dec 2003
Distribution: Mint 17.1 KDE on workstation, CentOS 6.x on servers
Posts: 1,121

Rep: Reputation: 46
Apache for Red Hat 8.0 sucks and has lot of bugs, I would assume it's the same for fedora. But installing it manually is a pain. Been working on it for about a week non stop and no success.
 
Old 03-08-2004, 02:17 PM   #5
drkfir5
Member
 
Registered: Jan 2004
Distribution: SuSE 9.0
Posts: 41

Rep: Reputation: 15
The apache that comes witrh SuSE 8.0 (and apache(2) with 9.0 works great, mabey get that. I have tried installing apache manually before, was a pain (anmost as bad a trying to do gnome).
 
Old 10-04-2004, 01:57 PM   #6
dimc
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
same problem.......

Hi linux user!

Im having exactly the same problem you had with apache 2.x

like you posted in this thread


How did you solved it?

I really need help

Im using apache 2.0.51 in a fedora 2 box
 
Old 10-07-2004, 02:22 AM   #7
hct224
Member
 
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Original Poster
Rep: Reputation: 15
The problem was port number(port 80)
The virtual host need to define a port number. so in this case it is:
<VirtualHost *:80>
........................

......................
</VirtualHost >
 
  


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
Ups & Nut Denis Basta Linux - Software 1 09-27-2005 08:09 PM
NUT and CyberPower UPSs cellist Linux - Hardware 3 07-05-2005 03:55 PM
going nut with linux tv sathia Slackware 3 03-12-2005 10:58 PM
sound is doing my nut (alsa) dhbiker Slackware 2 04-11-2004 06:45 AM
Christmas rip and encode nut Thulemanden Libranet 1 12-27-2003 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration