Сейчас имеем:
/home/ilya/www/loc1 - цмс с .htaccess с RewriteEngine On
/etc/apache2/sites-available/default:
Код: Выделить всё
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride All
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
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
AllowOverride All
Order deny,allow
Deny from all
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName loc1
DocumentRoot /home/ilya/www/loc1
<Directory />
RewriteEngine On
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/ilya/www/loc1>
RewriteEngine On
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>Выскакивает Internal Server Error.
При перезапуске апача:
Код: Выделить всё
ilya@ilya-desktop-88:~$ sudo invoke-rc.d apache2 restart
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]Помогите.