httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Tronstad" <s...@nextgentel.com>
Subject RE: [users@httpd] Help configuring Apache2 + SSL + namebased vhosts
Date Wed, 04 Mar 2009 14:43:49 GMT
And I forgot to include a complete dump of my vhost with SSL enabled


------------------------------------------------------------
<VirtualHost *:80>
        ServerAdmin loxus@mydomain.no
        DocumentRoot /home/myuser/public_html
        ServerName mydomain.no
        ErrorLog /var/log/apache2/mydomain.com-error.log
        LogLevel warn
        CustomLog /var/log/apache2/mydomain.com-access.log combined
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin loxus@mydomain.no
        DocumentRoot /home/myuser/public_html
        ServerName mydomain.no
        ErrorLog /var/log/apache2/mydomain.com-error.log
        LogLevel warn
        CustomLog /var/log/apache2/mydomain.com-access.log combined
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        SSLEngine on
        SSLCertificateFile /etc/apache2/mydomain.no.crt
</VirtualHost>
--------------------------------------------------

EOF.


-----Opprinnelig melding-----
Fra: Brian Mearns [mailto:mearns.b@gmail.com] 
Sendt: 4. mars 2009 15:29
Til: users@httpd.apache.org
Emne: Re: [users@httpd] Help configuring Apache2 + SSL + namebased vhosts

On Wed, Mar 4, 2009 at 8:37 AM, Steffen Tronstad <sttr@nextgentel.com> wrote:
> I've created the certificate and all this.
>
> I do not get any output from apache, other than failed!.
>
> /etc/init.d/apache2 start
> Starting web server (apache2)... failed!
>
>
> My error.log doesnt get updated with any errors.
>
>
>
> apache2ctl -S
> VirtualHost configuration:
> wildcard NameVirtualHosts and _default_ servers:
> *:443                  is a NameVirtualHost
>         default server mydomain.no (/etc/apache2/sites-enabled/mydomain.no:18)
>         port 443 namevhost mydomain.no (/etc/apache2/sites-enabled/mydomain.no:18)
> *:80                   is a NameVirtualHost
>         default server mysql.mydomain.no (/etc/apache2/sites-enabled/000-default:4)
>         port 80 namevhost mysql.mydomain.no (/etc/apache2/sites-enabled/000-default:4)
>         port 80 namevhost mydomain.com (/etc/apache2/sites-enabled/mydomain.com:1)
>         port 80 namevhost mydomain.no (/etc/apache2/sites-enabled/mydomain.no:1)
>         port 80 namevhost mydomain.ny (/etc/apache2/sites-enabled/mydomain.ny:1)
>         port 80 namevhost www.mydomain.ny (/etc/apache2/sites-enabled/mydomain.ny:17)
>         port 80 namevhost ingame.mydomain.no (/etc/apache2/sites-enabled/ingame.mydomain.no:1)
>         port 80 namevhost noje.mydomain.no (/etc/apache2/sites-enabled/noje.mydomain.no:1)
> Syntax OK

Oh, ok. That should just mean there's a problem in your config file.
It could be as simple as a typo.

Errors in the config file don't get reported to the error log (since
the error log is configured in the config file). To check for errors,
you want to run `apachectl -t`. The apachectl script should be in the
bin directory under where ever apache2 is installed.

-Brian

-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://pgp.mit.edu/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message