I've added apache2, phpmyadmin, mysql and set up everything (as far as I can tell) correctly. if i visit 127.0.0.1 i get the usual "it works!" message, and i can login to phpmyadmin and mess to my heart's content.
The problem I have is when I add extra sites to local host, I've added the site names to the /etc/hosts file alongside my box name and localhost and when i visit the sites i get "internal server error" on any site but the default. I'm sure the site config is ok, or at least it's set up almost identical (bar the directories for the sites, and the sitenames) to a kubuntu box i set up at work. I can't see what I've done wrong - any ideas?
Below is my current config, i've edited out the names of directories and sites, etc. I've also got four extra sites set up on the actual config, all of which do the same. I've just included one below to save a little space.
- Code: Select all
NameVirtualHost *
<VirtualHost *>
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>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/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>
<VirtualHost *>
ServerName site1
ServerAdmin webmaster@localhost
DocumentRoot /home/me/Websites/site1/
<Directory "/home/me/Websites/site1">
allow from all
Options +Indexes
</Directory>
ServerAlias site1
</VirtualHost>
any help much appreciated!

