phpbb forum setup on nginx
I am trying to setup phpbb forum on nginx server. The home page opens fine
but whenever i click on any forum, it gives me 404 error. This is what i
tried in my nginx server configuration:
1
2 server{
3 server_name studentshelp.info;
4 return 301 $scheme://www.studentshelp.info$request_uri;
5 }
6
7
8 server {
9
10 server_name www.studentshelp.info;
11 access_log /home/logs/studentshelp.info/access.log;
12 error_log /home/logs/studentshelp.info/error.log;
13 root /home/studentshelp;
14
15 location / {
16 rewrite sitemap.xml /sitemap.php;
17 if (!-e $request_filename){ rewrite ^/(.+)/$ /$1 redirect; }
18 try_files $uri $uri/ /index.php;
19 index index.php;
20 }
21 location ~ \.php$ {
22 include fastcgi_params;
23 fastcgi_pass 127.0.0.1:9000;
24 fastcgi_index index.php;
25 fastcgi_param SCRIPT_FILENAME
/home/studentshelp$fastcgi_script_name;
26 }
27 }
28
The home page of the forum works just fine. The problem occurs whenever a
user clicks on any of the topics/forums. It throws a 404 page. My belief
is that its somewhat due to nginx confguration.
No comments:
Post a Comment