Jump to content

Recommended Posts

Posted

At the minute ive got a few problems with Apache2 running on Ubuntu server 7.10

 

First issue is that mod_alias has been uninstalled any ideas how i would re-install that.

 

And second ive got mod_ssl installed and it seems to be working strangely. Heres my virtualhost for the site that i want setup

DocumentRoot "/var/www/ssl"
ServerName ssl.dzgforum.com

allow from all
Options +Indexes

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem

The server does not seem to be taking the ServerName value because if i browse to https://jacknet.co.uk the site is displayed like it should be for that virtualhost i get the documentroot of that virtualhost and everything. But if i browse to https://ssl.dzgforum.com i get nothing just the page cannot be displayed.

 

Any ideas?

 

Thanks

Jack Dunn

Posted

I'll try help as i use debian and theyre very similar

 

you have two folders in the apache2 folder

 

/etc/apache2/mods-available

and

/etc/apache2/mode-enabled

 

copy alias.load from available to enabled using drag and drop gui or the cp command.

 

If it displays properly on the other domain name your right its most likely the ServerName part, ive got an apache2 bible book which i would consult at this point as that seems fine to me.. except if that all wasnt being read.

for example where is said code being stored??

 

the bottom of apache2.conf

 

or ??

Posted

Iain is right. You can't use name based vhosts with SSL. So your SSL vhost should be on a different port and the server name you give it is irrelevant because it'll be accessible on all domains that point to that server on port 443. Make sure that you've got 443 in your apache listen-on-ports file or whatever it's called.

 

Make sure that you've got the

 

NameVirtualHost *:443

 

HOST STUFF

 

 

To get alias mod into mods-enabled directory you need to run the a2enmod command from within the mods-available folder (you'll need to use sudo) and then restart Apache.

 

It's been a while since i used Ubuntu Server i will admit, I'm on FreeBSD for my servers now and it's got a different method for managing modules etc. under Apache.

Posted

I know about a2enmod but that says Module not avalible the mod was acting strange a bit ago so i disabled it but now when i try to enable it it says module not avalible

 

Ive attached a screenshot of my VirtualHosts in webmin (purely because its easier to view). The site is still not working correctly like that, its still displaying on the site thats default jacknet.co.uk and not the site it should be ok on

webmin.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • 47 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...