LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-21-2004, 08:54 AM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
mixing * ports error in apache + ssl


I'm trying to enable SSL on my system, but unfortunately i'm having two problems.

Firstly, i cant quite get my host right, i've added in my /etc/hosts file
162.168.0.3 xushi.co.uk

but i don't think that's the correct syntax (it is for windows,)

Secondly, i keep getting a weird error when i start apache
apachectl startssl
[Tue Sep 21 14:58:06 2004] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Tue Sep 21 14:58:06 2004] [error] VirtualHost *:443 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

here are my virtualhosts configs

in /etc/apache2/httpd.conf
Code:
<VirtualHost *:80>
    DocumentRoot /var/www/htdocs
    ServerName www.xushi.co.uk
    ServerAdmin xushi@xushi.co.uk
    ServerAlias xushi.co.uk
</VirtualHost>


<VirtualHost *>
    ServerAdmin webmaster@kolba.co.uk
    DocumentRoot /home/kolba.co.uk/htdocs
    ServerName www.kolba.co.uk
    ServerAlias kolba.co.uk
    ErrorLog /var/log/apache2/kolba.co.uk-error_log
    CustomLog /var/log/apache2/kolba.co.uk-access_log common
</VirtualHost>
in /etc/apache2/ssl.conf
Code:
<VirtualHost *:443>

#   General setup for the virtual host
DocumentRoot "/var/www/htdocs"
ServerName www.xushi.co.uk:443
ServerAdmin xushi.co.ukm
ErrorLog /var/log/apache2/error_log
TransferLog /var/log/apache2/access_log
Any ideas? Thanks.

EDIT: Forgot to mention, what i want is this
http://xushi.co.uk (on port 80) --> /var/www/htdocs/ (normal)
https://xushi.co.uk (port 443) --> /var/www/htdocs/ (with ssl)
http://kolba.co.uk (port 80) --> /home/kolba.co.uk/

And i do have a Static ip address btw.

Last edited by xushi; 09-21-2004 at 09:21 AM.
 
Old 09-21-2004, 10:03 AM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
I think i've got it now. These settings work from within my network (except kolba.co.uk...), however a friend from outside the network said he couldnt access the websites.

/etc/hosts is correct.

As for ssl.conf, the syntax i used is
Code:
<VirtualHost xushi.co.uk:443>

#   General setup for the virtual host
DocumentRoot "/var/www/htdocs"
ServerName xushi.co.uk:443
ServerAdmin xushi.co.uk
ErrorLog /var/log/apache2/error_log
TransferLog /var/log/apache2/access_log
as for httpd.conf,
Code:
NameVirtualHost *

<VirtualHost *>
    DocumentRoot /var/www/htdocs
    ServerName xushi.co.uk
    ServerAdmin xushi@xushi.co.uk
    ServerAlias xushi.co.uk
</VirtualHost>


<VirtualHost *>
    ServerAdmin webmaster@kolba.co.uk
    DocumentRoot /home/kolba.co.uk/htdocs
    ServerName www.kolba.co.uk
    ServerAlias kolba.co.uk
    ErrorLog /var/log/apache2/kolba.co.uk-error_log
    CustomLog /var/log/apache2/kolba.co.uk-access_log common
</VirtualHost>
 
  


Reply



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
vsFTPd - SSL connection and dynamic SSL ports toxoplasme Linux - Server 11 08-22-2008 10:50 PM
Apache 1.3.33 (debian built) and Apache SSL does not respond to the proper ports lqorg_user Linux - Networking 0 11-06-2005 04:11 PM
apache 2.0.54 error with ssl slackwbas Linux - Software 6 09-21-2005 12:25 AM
mixing apache 2 and php wedgeworth Linux - Newbie 2 04-01-2004 12:39 PM
Invalid SSL/TLS toolkit base dir error while compiling Apache 2 basse- Linux - Software 2 03-20-2004 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:46 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
Open Source Consulting | Domain Registration