LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-21-2002, 07:09 PM   #1
nyroc
LQ Newbie
 
Registered: Nov 2002
Posts: 9

Rep: Reputation: 0
Apache virtualhost problems, apache install problems


Hi,

I am running RH8.0. I began trying to run Apache 2.0.40, whcih worked with a single website, but when I configured virtual hosts, apache would not start. It gave me a funny error message "[error] VirtualHost _default_:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results" I tried a large number of things to change in the httpd.conf, but it did not help. I am not using 443. I tried specifying 80, but it did not help.

Apache suggests the latest distribution 2.0.43, which installs but won't run without a later version of modperl "httpd: module "mod_perl.c" is not compatible with this version of Apache (found 20020628, need 20020903).
".

so I downloaded the latest mod perl, and it won't install: "/usr/bin/ld: cannot find -lapr" (upon attempting make).


I'm getting frustrated.

Was I supposed to uninstall apache 2.0.40 first.
Do I need to configure something to point to apr? APR exists, and it is up to date (somes with apache).

Help.

Last edited by nyroc; 11-21-2002 at 07:10 PM.
 
Old 01-08-2003, 11:24 PM   #2
asnagy
LQ Newbie
 
Registered: Jan 2003
Location: New York State
Distribution: Redhat 8
Posts: 1

Rep: Reputation: 0
Smile Fix for virtual host problem

Here's the fix:
http://www.siliconvalleyccie.com/apachebasic.htm

Basically, the problem is ssl, which happens to not like virtual hosts. If you specify exactly what config files to load for example:
Include conf.d/perl.conf
Include conf.d/python.conf
Include conf.d/php.conf

Instead of
Include conf.d/*.conf

You will not load ssl.conf and this will solve the problem.

Hope this helps!

BTW -- has anyone else noticed that there are a lot more things that cause problems in apache 2.* than in 1.* ???

Happy Coding
-Andrew
 
Old 06-09-2003, 11:16 PM   #3
grychwski
LQ Newbie
 
Registered: Jun 2003
Location: Chicago
Distribution: Red Hat
Posts: 1

Rep: Reputation: 0
Another fix for virtual host problem

Explicitly state the port that you want the virtual host to use (this will keep it from conflicting with port 443 SSL):

NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.site.com
DocumentRoot /var/www/site
.
.
.
.
.
</VirtualHost>

This way you don't have to mess with the Include statement which might become a problem later if you forget to include a needed module or want to use SSL.

Last edited by grychwski; 06-09-2003 at 11:23 PM.
 
  


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 -VirtualHost davidhk Debian 7 08-19-2005 12:33 PM
Sun ASP and apache 2-install problems snip128 Linux - Software 0 08-03-2005 05:00 AM
curl/php/apache install problems ewlnxnewB Linux - Software 2 10-22-2004 03:33 AM
Apache install problems (make) rh9 rainman4_8 Linux - Software 2 05-19-2004 07:24 AM
Help with Apache <VirtualHost> please. smakkythecamel Linux - Networking 2 06-12-2003 07:15 PM


All times are GMT -5. The time now is 11:02 AM.

Main Menu
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