Closed ghost closed 10 years ago
Oh I found the culprit that make Clean URL test failed we should not add this line
include fastcgi_params;
So now my drupal site has Clean URL :)
I have a problem. If I open the main page, downloaded index.php. All other pages open normally.
Hello Reproduce all the steps and still did not work - CleanURL,
please help.
my conf.d:
#AUTOMATICALLY GENERATED - DO NO EDIT!
server {
listen *:80;
server_name site.teractivo.com;
access_log /var/log/nginx/siteteractivocom.access.log;
error_log /var/log/nginx/siteteractivocom.error.log;
root /srv/teractivo/site/;
index index.html index.htm index.php;
client_max_body_size 128M;
fastcgi_read_timeout 300;
location ~ [^/]\.php(/|$) {
fastcgi_index index.php;
include fcgi.conf;
fastcgi_pass unix:/var/run/ajenti-v-php-fcgi-siteteractivocom-php-fcgi-0.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
I read custom nginx configuration for wordpress on http://support.ajenti.org/topic/353409-setting-up-a-php-website-with-ajenti-v-wordpress-example/
So I try create custom conf for drupal using this guide http://wiki.nginx.org/Drupal
I copied this code to Advanced Tab
On Content - Advanced - Custom Configuration I added
When I check /etc/nginx/conf.d/mysite.conf the configuration become;
I run Clean URL test on drupal http://mysite.com/?q=admin/config/search/clean-urls But Clean URL test still failed.
What I missed here?