Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question