Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| public:computer:oracle_cloud [2022/03/22 16:57] – [Nginx] alex | public:computer:oracle_cloud [2022/04/01 11:04] (current) – [Nginx] alex | ||
|---|---|---|---|
| Line 179: | Line 179: | ||
| </ | </ | ||
| + | * create .conf file: / | ||
| + | <sxh> | ||
| + | server | ||
| + | { | ||
| + | # | ||
| + | root / | ||
| + | index index.php; | ||
| + | |||
| + | location / { try_files $uri $uri/ @dokuwiki; } | ||
| + | |||
| + | location @dokuwiki | ||
| + | { | ||
| + | rewrite ^/ | ||
| + | rewrite ^/ | ||
| + | rewrite ^/ | ||
| + | rewrite ^/(.*) / | ||
| + | } | ||
| + | |||
| + | location ~ \.php$ | ||
| + | { | ||
| + | if (!-f $request_filename) { return 404; } | ||
| + | include fastcgi_params; | ||
| + | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
| + | fastcgi_param REDIRECT_STATUS 200; | ||
| + | fastcgi_pass unix:/ | ||
| + | } | ||
| + | |||
| + | location ~ / | ||
| + | { | ||
| + | deny all; | ||
| + | } | ||
| + | |||
| + | location ~ / | ||
| + | { | ||
| + | internal; | ||
| + | } | ||
| + | |||
| + | # | ||
| + | } | ||
| + | </ | ||
| === etc === | === etc === | ||
| * version | * version | ||