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.
|