MAPG-92 use Nginx instead of Apache in Docker environment
This commit is contained in:
1 parent
0ca7ea75b2
commit
6115dc7bc6
3 files changed
+29
-23
No files matched your search
@@ -1,15 +0,0 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName mapguesser-dev.ch
|
||||
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/mapguesser/public
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
|
||||
<Directory /var/www/mapguesser/public>
|
||||
Options FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
root /var/www/mapguesser/public;
|
||||
|
||||
index index.php index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name mapguesser-dev.ch;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
include snippets/fastcgi-php.conf;
|
||||
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
||||
}
|
||||
|
||||
location ~ /\.ht {
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user