Answer the question
In order to leave comments, you need to log in
Why does the installation fail on ubuntu?
here is the gamer.lc.conf file
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName gamer.lc
ServerAlias www.gamer.lc
documentRoot /var/www/gamer.lc
<Directory /var/www/gamer.lc >
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/www/error.log
CustomLog /var/www/access.log combined
</VirtualHost>
sudo a2enmod rewrite
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if request begins with /admin remove admin and ad /backend/web/
RewriteCond %{REQUEST_URI} ^/admin
RewriteRule ^admin/?(.*) /backend/web/$1
# other requests add /frontend/web/$1
RewriteCond %{REQUEST_URI} !^/(frontend/web|backend/web|admin)
RewriteRule (.*) /frontend/web/$1
# if frontend request
RewriteCond %{REQUEST_URI} ^/frontend/web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /frontend/web/index.php
# if backend request
RewriteCond %{REQUEST_URI} ^/backend/web
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /backend/web/index.php
[Thu Jun 02 10:59:56.290501 2016] [core:alert] [pid 1397] [client 127.0.0.1:43767] /var/www/gamer.lc/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Answer the question
In order to leave comments, you need to log in
It's written
I work as a translator:
I have little to do with Apache and chalk, but I think the module needs to be connected. How? so.
look at the apache config for a comment on the line with this module. and how did you restart apache?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question