development:system:ubuntu
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
development:system:ubuntu [2024/09/08 03:29] – [PHP FPM] tungnt | development:system:ubuntu [2025/01/01 07:51] (current) – [certbot] tungnt | ||
---|---|---|---|
Line 423: | Line 423: | ||
$ php -v | $ php -v | ||
$ php --ini | $ php --ini | ||
+ | php -m | grep opentelemetry | ||
</ | </ | ||
Line 487: | Line 488: | ||
<file conf nginx.conf> | <file conf nginx.conf> | ||
- | server { # php/fastcgi | + | server { |
listen | listen | ||
- | | + | |
- | root /var/www/html/; | + | |
- | index info.php; | + | |
- | | + | root |
- | | + | |
+ | index index.php index.html index.htm; | ||
+ | |||
+ | | ||
+ | try_files $uri $uri/ /index.php? | ||
+ | | ||
location ~ \.php$ { | location ~ \.php$ { | ||
- | try_files $uri =404; | + | try_files |
- | fastcgi_pass | + | fastcgi_pass |
- | fastcgi_index index.php; | + | fastcgi_index |
- | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | + | fastcgi_param |
- | include fastcgi_params; | + | include |
} | } | ||
} | } | ||
</ | </ | ||
- | fastcgi_pass | + | fastcgi_pass |
+ | |||
+ | <file conf /opt/ | ||
+ | ... | ||
+ | ; The address on which to accept FastCGI requests. | ||
+ | ; Valid syntaxes are: | ||
+ | ; ' | ||
+ | ; a specific port; | ||
+ | ; ' | ||
+ | ; a specific port; | ||
+ | ; ' | ||
+ | ; (IPv6 and IPv4-mapped) on a specific port; | ||
+ | ; '/ | ||
+ | ; Note: This value is mandatory. | ||
+ | listen | ||
+ | ... | ||
+ | </file> | ||
https:// | https:// | ||
Line 677: | Line 700: | ||
< | < | ||
certbot --nginx -d test.com -d www.test.com | certbot --nginx -d test.com -d www.test.com | ||
+ | |||
+ | sudo certbot delete | ||
</ | </ | ||
development/system/ubuntu.1725766152.txt.gz · Last modified: 2024/09/08 03:29 by tungnt