LinuxQuestions.org
Help answer threads with 0 replies.
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 06-12-2003, 07:00 PM   #1
smakkythecamel
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Rep: Reputation: 0
Help with Apache <VirtualHost> please.


Hi Guys.

Sorry if I've posted this in the wrong forum.

I'm new here and new to Linux but I'm learning heaps. I've got Apache 2, PHP4.3.2, and MySQL running on redhat 7.1. I installed a program called MySource which gave me some text to put in the httpd.conf file. After inserting the text into the httpd.conf file, I get the message "Port was replaced with Listen in Apache 2.0" The line that is wrong is the "Port 80" bit, which if I comment it out I can start apache, but MySource doesn't work correctly.

Does anyone have any ideas?

Text is as follows:

<VirtualHost 10.1.2.20>
Port 80
ServerAdmin root@redhat
DocumentRoot /usr/local/mysource-2.4.1/web
ServerName redhat
<Directory /usr/local/mysource-2.4.1/web>
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Directory /usr/local/mysource-2.4.1/squizlib>
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Directory /usr/local/mysource-2.4.1/data/unrestricted>
AllowOverride All
Order allow,deny
Allow from all
</Directory>

AliasMatch "^(/.*)?/__lib(.*)$" "/usr/local/mysource-2.4.1/web/__lib$2"
AliasMatch "^(/.*)?/__squizlib(.*)$" "/usr/local/mysource-2.4.1/squizlib$2"
AliasMatch "^(/.*)?/__data(.*)$" "/usr/local/mysource-2.4.1/data/unrestricted$2"

# Any HTTP request made at this domain followed by '/_edit'
# will open the editing interface for that site, page etc.
AliasMatch "^(/.*)?/_edit(.*)$" "/usr/local/mysource-2.4.1/web/edit$2"

# Any *other* HTTP request made at this domain gets handled
# by the MySource web frontend controller script.
AliasMatch "^(/.*)?$" "/usr/local/mysource-2.4.1/web/index.php"

# Example alternative at a particular subdirecory of this domain:
#AliasMatch "^/path/to/mysource/section(/.*)?/__lib(.*)$" "/usr/local/mysource-2.4.1/web/__lib$2"
#AliasMatch "^/path/to/mysource/section(/.*)?/__squizlib(.*)$" "/usr/local/mysource-2.4.1/squizlib$2"
#AliasMatch "^/path/to/mysource/section(/.*)?/__data(.*)$" "/usr/local/mysource-2.4.1/data/unrestricted$2"
#AliasMatch "^/path/to/mysource/section(/.*)?/_edit(.*)$" "/usr/local/mysource-2.4.1/web/edit$2"
#AliasMatch "^/path/to/mysource/section(/.*)?$" "/usr/local/mysource-2.4.1/web/index.php"
</VirtualHost>

Thanks in advance,
Owen.
 
Old 06-12-2003, 08:11 PM   #2
hornet
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
At a guess i'd say that your MySource program also requires port 80. MySource isn't its own webserver at all is it? maybe it has apache built in?
 
Old 06-12-2003, 08:15 PM   #3
smakkythecamel
LQ Newbie
 
Registered: Jun 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Hi Hornet.

MySource requires Apache, MySQL and PHP > 4.2.0. So I guess it's not it's own webserver. I'm not even sure if fixing that "Port 80" line will resolve the problems that are occuring, but it's worth a try.

Thanks,
Owen.
 
  


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
apache + add a VirtualHost linuxtesting2 Linux - Newbie 2 09-03-2005 04:21 AM
Apache -VirtualHost davidhk Debian 7 08-19-2005 01:33 PM
VirtualHost Apache 2 Problem Chris_K1 Linux - Networking 0 01-25-2005 11:00 AM
Apache & VirtualHost nIMBVS Slackware 2 10-27-2004 04:01 PM
apache virtualhost jonfa Linux - Networking 5 08-12-2002 07:07 PM


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