有朋友对joomla比较熟悉吗
回 1楼dongshan8的帖子
centos 7
-------------------------
回 3楼dongshan8的帖子
[警告] nginx-1.8 配置Rewrite规则错误,请查检改正。nginx: [emerg] 'server' directive is not allowed here in /home/wwwroot/joomla/rewrite/joomla.conf:1nginx: configuration file /usr/local/nginx-1.8/conf/nginx.conf test failed
大侠,我使用的是AMH5.3搭建的.报以上错误
server { listen 80; server_name 我的域名; server_name_in_redirect off; access_log /var/log/nginx/localhost.access_log; error_log /var/log/nginx/localhost.error_log info; root home/wwwroot/joomla/; 路径这样对吗 index index.php index.html index.htm default.html default.htm; # Support Clean (aka Search Engine Friendly) URLs location / { try_files $uri $uri/ /index.php?$args; } # deny running scripts inside writable directories location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ { return 403; error_page 403 /403_error.html; } location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include /etc/nginx/fastcgi.conf; } # caching of files location ~* \.(ico|pdf|flv)$ { expires 1y; } location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ { expires 14d; }}
谢谢
赞0
踩0