Skip to content

Commit 5732a0c

Browse files
committed
Apache config
1 parent cdb7416 commit 5732a0c

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

apache/web-frontend.conf

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<VirtualHost *:80>
2+
ServerName frontend.phplist.local
3+
ServerAdmin webmaster@localhost
4+
5+
DocumentRoot /{pathToTheProject}/web-frontend/public
6+
7+
ErrorLog ${APACHE_LOG_DIR}/web-frontend-error.log
8+
CustomLog ${APACHE_LOG_DIR}/web-frontend-access.log combined
9+
10+
<Directory /{pathToTheProject}/web-frontend/public>
11+
Options FollowSymLinks
12+
AllowOverride All
13+
Require all granted
14+
DirectoryIndex app.php
15+
</Directory>
16+
17+
<FilesMatch "^\.">
18+
Require all denied
19+
</FilesMatch>
20+
21+
<IfModule proxy_fcgi_module>
22+
<FilesMatch \.php$>
23+
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost"
24+
</FilesMatch>
25+
</IfModule>
26+
</VirtualHost>

0 commit comments

Comments
 (0)