S
S
Sergey2016-12-03 00:45:33
Yii
Sergey, 2016-12-03 00:45:33

Why do site links open under the built-in server, but not under apache?

Installed Yii2 basic locally.
This is how /var/www$ php -S localhost:8888 -t yii2/web
yii2/ opens and all the basic pages with prettyurl like /site/login etc.
under apache

<VirtualHost *:80>
ServerName yii2
DocumentRoot /var/www/yii2/web

<Directory "/var/www/yii2/">
        #Разрешение на перезапись всех директив при помощи .htaccess
        Options Indexes FollowSymLinks MultiViews
       AllowOverride All
       Order allow,deny
       Allow from all
</Directory>
</VirtualHost>

Opens yii2/ and that's it. For pages like /site/login I get
Not Found
The requested URL /site/login was not found on this server.
What could be the reason?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-12-04
@zeyser

Here are the minimum required settings for apache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question