I believe I have now reverted to the original config files however still get the following error when trying to start apache
Code: Select all
bubba:/etc/apache2# /etc/init.d/apache2 stop
Stopping web server (apache2)...[Fri Jun 11 21:24:56 2010] [warn] NameVirtualHost *:443 has no VirtualHosts
[Fri Jun 11 21:24:56 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
httpd (no pid file) not running
.
bubba:/etc/apache2# /etc/init.d/apache2 start
Starting web server (apache2)...[Fri Jun 11 21:25:04 2010] [warn] NameVirtualHost *:443 has no VirtualHosts
[Fri Jun 11 21:25:04 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
(98)Address already in use: make_sock: could not bind to address [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
failed!
bubba:/etc/apache2#
Code: Select all
Listen 443
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/cacert.pem
SSLCertificateKeyFile /etc/apache2/privkey.pem
ServerAdmin webmaster@localhost
DocumentRoot /home/web
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
allow from all
</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
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/web
DirectoryIndex index.html index.htm index.cgi index.pl index.php index.xhtml
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
allow from all
</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
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Listen 80
Would be very greatful if someone could spot whats wrong, or point me in the right direction to restore default apache / send me config files...?
again many thanks!!