Open GoogleCodeExporter opened 9 years ago
I have this same problem on a fresh Ubuntu 14.04.1 install. I thought it might
be because "elsa" Apache config file did not end with ".conf", so I renamed it.
Now Apache thinks it is a valid site, but when I try to reload it I get a
bunch of errors.
tristanrhodes@elsa:/etc/apache2/sites-enabled$ sudo a2ensite elsa
ERROR: Site elsa does not exist!
tristanrhodes@elsa:/etc/apache2/sites-available$ ll
total 24
drwxr-xr-x 2 root root 4096 Nov 25 21:04 ./
drwxr-xr-x 8 root root 4096 Nov 25 21:04 ../
-rw-r--r-- 1 root root 1332 Jan 7 2014 000-default.conf
-rw-r--r-- 1 root root 6437 Jan 7 2014 default-ssl.conf
-rw-r--r-- 1 root root 812 Nov 25 21:04 elsa
tristanrhodes@elsa:/etc/apache2/sites-available$ sudo mv elsa elsa.conf
tristanrhodes@elsa:/etc/apache2/sites-available$ ll
total 24
drwxr-xr-x 2 root root 4096 Nov 25 21:08 ./
drwxr-xr-x 8 root root 4096 Nov 25 21:04 ../
-rw-r--r-- 1 root root 1332 Jan 7 2014 000-default.conf
-rw-r--r-- 1 root root 6437 Jan 7 2014 default-ssl.conf
-rw-r--r-- 1 root root 812 Nov 25 21:04 elsa.conf
tristanrhodes@elsa:/etc/apache2/sites-available$ sudo a2ensite elsa
Enabling site elsa.
To activate the new configuration, you need to run:
service apache2 reload
tristanrhodes@elsa:/etc/apache2/sites-available$ sudo service apache2 reload
* Reloading web server apache2 *
* The apache2 configtest failed. Not doing anything.
Output of config test was:
AH00548: NameVirtualHost has no effect and will be removed in the next release
/etc/apache2/sites-enabled/elsa.conf:7
AH00526: Syntax error on line 21 of /etc/apache2/sites-enabled/elsa.conf:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not
included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
Original comment by tristan....@gmail.com
on 25 Nov 2014 at 9:33
I have exactly the same issue on a fresh Ubuntu 14.04.1
Tried to mess around with the .conf file, but cannot get it to work.
Original comment by abdallah...@gmail.com
on 2 Dec 2014 at 12:52
Hi,
This can be solved by enabling the Rewrite module
ln -s /etc/apache2/mods-available/rewrite.load
/etc/apache2/mods-enabled/rewrite.load
Original comment by emag...@gmail.com
on 8 Mar 2015 at 7:54
Original issue reported on code.google.com by
sach...@appcino.com
on 8 Oct 2014 at 10:20Attachments: