Not logged in. · Lost password · Register
Forum: General Help and Support Server Setup RSS
dokuwiki:farm+nginx = sitemap problem
nginx misconfiguration or something?
Avatar
r-vas #1
Member since Feb 2012 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: dokuwiki:farm+nginx = sitemap problem
Hi,

I've installed farm using http://www.dokuwiki.org/tips:farm. Wikies in the farm and farmer are working Ok, except sitemap.xml generation/serving.

My nginx config:
server_name wiki.tld; #animal wiki

access_log  /srv/www/wiki.farmer/logs/access.log;
error_log /srv/www/wiki.farmer/logs/error.log;

root /srv/www/wiki.farmer/htdocs; ###farmers root

server_name_in_redirect off;

location ~ /(data|conf|bin|inc)/ {
deny all;
}

location = /(robots.txt|favicon.ico)  { access_log off; log_not_found off; }

location ~ ^.*\.(css|js|png|jpg|ico|gif|html??)$ {
allow all;
add_header Vary Accept-Encoding;
}

location / {
index doku.php;
try_files $uri $uri/ @dokuwiki;
}

location @dokuwiki {

rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;

rewrite ^/(.*) /doku.php?id=$1&$args last;
rewrite ^/tag/(.*) /doku.php?id=tag:$1&do=showtag&tag=tag:$1 last;

}

location ~ \.php$ {

if (!-f $request_filename) { return 404; }
limit_req   zone=flood  burst=5;
include fastcgi.conf;
fastcgi_pass   my_php;

}
}###server

####

When I'm launching http://wiki.tld/doku.php?do=sitemap, getting error
####
2012/02/08 21:32:49 [error] 17281#0: *2363 access forbidden by rule, client: *.*.*.* server: wiki.tld, request: "GET /doku.php?do=sitemap
####

Could you please help me resolve config problem.

Thank you.
Avatar
maciasb #2
Member since Nov 2011 · 6 posts · Location: Washington, DC-area, USA
Group memberships: Members
Show profile · Link to this post
I'm pretty shaky in my understanding of web server configuration, but the first thing that occurred to me to troubleshoot would be permissions. The sitemap file uses an xml extension but I don't see that extension in your setup. Does it make any difference to add the .xml extension to the location block?

location ~ ^.*\.(css|js|png|jpg|ico|gif|xml|html??)$ {
allow all;
add_header Vary Accept-Encoding;
}
Avatar
r-vas #3
Member since Feb 2012 · 3 posts
Group memberships: Members
Show profile · Link to this post
location ~ ^.*\.(css|js|png|jpg|ico|gif|xml|html??)$ {
allow all;
add_header Vary Accept-Encoding;
}

Unfortunately this changes nothing. And
location / {
index doku.php;
try_files $uri $uri/ @dokuwiki;
}
owerwhelmes serving of all files that are not included in
location ~ /(data|conf|bin|inc)/ {
deny all;
}

Sitemap.xml is not created in any wiki, farmer or animal for some (unknown for me) reasons. Directory permissions for fastcgi backend and for server are looking OK. So, I have no idea where is the problem..
Avatar
maciasb #4
Member since Nov 2011 · 6 posts · Location: Washington, DC-area, USA
Group memberships: Members
Show profile · Link to this post
I hope someone more knowledgeable than me weighs in on this thread, but in the meantime, did you already try the suggestion on http://www.dokuwiki.org/sitemap#permission_setup about the empty .gz file and the debug URL?

You might also find something helpful on this thread: https://forum.dokuwiki.org/post/28342
This post was edited on 2012-02-28, 22:04 by maciasb.
Avatar
r-vas #5
Member since Feb 2012 · 3 posts
Group memberships: Members
Show profile · Link to this post
http://wiki/lib/exe/indexer.php?debug=1
runIndexer(): started
runSitemapper(): started
runSitemapper(): finished
sendDigest(): start

but http://wiki/?do=sitemap&debug=1 thrown error (net::ERR_FILE_NOT_FOUND)

Sitemap file is created in data/cache/sitemap.xml.gz and it is filled with data both times.

Access to http://wiki/sitemap.xml.gz throws 404 error.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Current time: 2014-04-19, 09:15:52 (UTC +02:00)