apache2ctl -t Syntax OK Here is a complete dump of my /etc/apache2/sites-enabled/000-default file: --------------------------------------------------------------------------------- NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /home/myuser/public_html/ <Directory /> Options FollowSymLinks ExecCGI AllowOverride All </Directory> Userdir public_html <Directory /home/*/public_html> Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride All Order allow,deny allow from all </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all # This directive allows us to have apache2's default start page # in /apache2-default/, but still have / go to the right place #RedirectMatch ^/$ /apache2-default/ </Directory> 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> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/mydomain.com-access.log combined ServerSignature On Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost> --------------------------------------------------------------------------------- EOF. -----Opprinnelig melding----- Fra: Brian Mearns [mailto:mearns.b@xxxxxxxxx] Sendt: 4. mars 2009 15:29 Til: users@xxxxxxxxxxxxxxxx Emne: Re: Help configuring Apache2 + SSL + namebased vhosts On Wed, Mar 4, 2009 at 8:37 AM, Steffen Tronstad <sttr@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx