我想將鏈接更改為對 SEO 友好。但到目前為止我無法正常運行它。請告訴我解決這個問題的方法。此外,我cp /home/default /etc/nginx/sites-enabled/default; service nginx restart在 azure-> ->configration->General Settings 上有一個類似“”的啟動命令這是我的 Nginx 服務器塊。
server {
#proxy_cache cache;
#proxy_cache_valid 200 1s;
listen 8080;
listen [::]:8080;
absolute_redirect off;
root /home/site/wwwroot;
index index.php index.html index.htm;
#server_name sitename.azurewebsites.net[;
location / {
index index.php;
try_files $uri $uri/ /index.php?$args;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /html/;
}
# Disable .git directory
location ~ /\.git {
deny all;
access_log off;
log_not_found off;
}
# Add locations of phpmyadmin here.
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(. ?\.php)(|/.*)$;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
fastcgi_param HTTP_PROXY "";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param QUERY_STRING $query_string;
fastcgi_intercept_errors on;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 3600;
fastcgi_read_timeout 3600;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
}

uj5u.com熱心網友回復:
根據上述共享資訊,我們了解到您正在嘗試通過startup在門戶配置下的 command 中傳遞命令來創建自定義啟動。
您需要使用service nginx reload而不是在此示例檔案service nginx restart中提到的如何更改 PHP 8 azure webapps 中的重寫規則。
對于自定義啟動腳本,始終建議在/home名為 startup.txt、startup.sh 或您選擇的包含啟動命令的其他名稱下創建檔案,并將檔案路徑傳遞給配置中的啟動命令門戶網站。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/537054.html
標籤:天蓝色nginx网络配置
上一篇:node.jscrypto.createDecipheriv(AES-CTR演算法)的WebCrypto.subtle.decrypt模擬是什么?
