mirror of
https://github.com/certbot/certbot.git
synced 2026-04-04 08:35:12 -04:00
22 lines
605 B
Nginx Configuration File
22 lines
605 B
Nginx Configuration File
server {
|
|
server_name domain.tld;
|
|
|
|
root /var/www/codeignitor;
|
|
index index.html index.php;
|
|
|
|
# set expiration of assets to MAX for caching
|
|
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
|
|
expires max;
|
|
log_not_found off;
|
|
}
|
|
|
|
location / {
|
|
# Check if a file or directory index file exists, else route it to index.php.
|
|
try_files $uri $uri/ /index.php;
|
|
}
|
|
|
|
location ~* \.php$ {
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
include fastcgi.conf;
|
|
}
|
|
}
|