0
symfony 프레임 워크를 사용하여 프로젝트를 만들었습니다. prod에서 서버 빌드를 실행할 때 또는 env가 실행됩니다.하지만 이제는 프로젝트를 데비안 서버로 이동하고 아파치를 설치하고 가상 파일을 만듭니다. 숙주. 디렉토리 목록 만 표시하고 앱을 시작하지 않습니다. 내 가상 호스트 구성에 문제가 있다고 생각합니다. Apache/2.4.10 (Debian) Server, PHP 5.6.19-0 + deb8u1 (cli)을 사용하고 있습니다.symfony 프로젝트를위한 아파치 가상 호스트 설정과의 오류
<VirtualHost *:80>
ServerName mose
ServerAlias 10.5.0.62
DocumentRoot /var/www/mose/web
<Directory /var/www/mose/web/>
AllowOverride None
Require all granted
Allow from All
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
</Directory>
# uncomment the following lines if you install assets as symlinks
# or run into problems when compiling LESS/Sass/CoffeScript assets
# <Directory /var/www/mose>
# Options FollowSymlinks
# </Directory>
# optionally disable the RewriteEngine for the asset directories
# which will allow apache to simply reply with a 404 when files are
# not found instead of passing the request into the full symfony stack
<Directory /var/www/mose/web/bundles>
<IfModule mod_rewrite.c>
RewriteEngine Off
</IfModule>
</Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_access.log combined
</VirtualHost>
AllowOverride 모두 –
내가 /app.php로 리디렉션했는데 빈 페이지 – sanof
이 맞으면 이제 로그를 확인해야합니다. –