Onlangs heb ik een nieuwe "site" toegevoegd aan mijn VirtualHost (Localhost) (Apache2). Daartoe heb ik wijzingen aangebracht in het bestand /etc/apache2/site-available/default. Gewoon regels van een bestaande site kopiëren, plakken en de betreffende namen wijzigen in die van de nieuwe site.
Nadat ik de pc opnieuw inschakelde, kreeg ik de melding "KAN GEEN VERBINDING MAKEN".
Als ik in Terminal het commando/etc/init.d/apache2 restart
invoeg, krijg de volgende meldingen:
/usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not permitted)
apache2: Syntax error on line 237 of /etc/apache2/apache2.conf: Syntax error on line 95 of /etc/apache2/sites-enabled/000-default: </VirtualHost> without matching <VirtualHost> section
Action 'configtest' failed.
The Apache error log may have more information.
...fail!
Ga ik naar het bestand /usr/sbin/apache2ctl: regel 87 dan snap ik niets van wat daar staat. Ik ben dan ook maar een gebruiker, geen kenner.
Ga ik naar het bestand /etc/apache2/sites-enabled/000-default, (verwijst overigens naar het bestand waarin ik heb gewerkt) dan zie ik niet wat daar fout is. Volgens mij moet ik hier toch zijn, want dat is de enige wijziging die ik aangebracht.
Het bestand luidt:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
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>
# VANAF HIER GEPLAKT CODE VAN WAMP
<Directory /var/www/oblimon/intranet>
Options Indexes FollowSymLinks
AllowOverride all
# onlineoffline tag - don't remove
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/oblimon/intranet>
# ServerAdmin webmaster@intranet
# DocumentRoot
# ServerName intranet
# ServerAlias intranet
# ErrorLog "logs/intranet-error.log"
# CustomLog "logs/intranet-access.log" common
</Directory>
<Directory /var/www/oblimon/website/>
Options Indexes FollowSymLinks
AllowOverride all
# onlineoffline tag - don't remove
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/oblimon/website>
# ServerAdmin webmaster@website
# DocumentRoot
# ServerName website
# ErrorLog "logs/website-error.log"
# CustomLog "logs/website-access.log" common
</Directory>
<Directory /var/www/nieuwesite/>
Options Indexes FollowSymLinks
AllowOverride all
# onlineoffline tag - don't remove
Order allow,deny
Allow from all
</Directory>
<Directory /var/www/nieuwesite>
# ServerAdmin webmaster@nieuwesite
# DocumentRoot
# ServerName nieuwesite
# ServerAlias nieuwesite
# ErrorLog "logs/nieuwesite-error.log"
# CustomLog "logs/nieuwesite-access.log" common
</Directory>
# EINDE INGEVOEGDE CODE WAMP
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
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>
Wie kijkt met mij mee en ziet waar de fout zit. Waar zit de syntax error?