| |
| | |

CodersClub

 Forgot password?
 Register
Search
Author: m.hmt
Collapse the left

I don't have Ucenter

[Copy link]

 Russia

Post time: 2013-12-04 10:26
| Show all posts
So, the problem described above is NOT THE DISCUZ BUG,
but is only your buggy local settings for nginx

 Iran

 Author| Post time: 2013-12-04 10:38
| Show all posts
VOT; it is not that either; I don't know how you are familiar with nginx;
I use the default config of nginx; No more No less.
The subject here is: "The rewrite or return directives for discuz"
Nowadays; people come to use nginx and for this transition to happen; the code writers give an nginx directives for their codes.
That is ; to tell the nginx how to handel their redirects; URI replacement and access to the specific directories like say admin or upload directories.
I am really surprised that there is not such a thing for Discuz. isn't anyone tried it on nginx?

 Russia

Post time: 2013-12-04 10:59
| Show all posts
By default Discuz does NOT USE any redirection.
Show your default config of nginx.

 Iran

 Author| Post time: 2013-12-04 11:31
| Show all posts
  1. server {
  2.     server_name  www.forums.DOMAIN.Dom;
  3.     rewrite ^(.*) http://forums.DOMAIN.Dom$1 permanent;
  4. }

  5. server {
  6.         listen 80;


  7.         server_name forums.DOMAIN.Dom;
  8.                 root   /var/www/forums/htdocs;
  9.                 index index.php;
  10.                 include /etc/nginx/security;

  11. # Logging --
  12. access_log  /var/log/nginx/forums.access.log;
  13. error_log  /var/log/nginx/forums.error.log debug;

  14.         # serve static files directly
  15.         location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
  16.             access_log        off;
  17.             expires           max;
  18.         }

  19.         location ~ \.php$ {
  20.                 try_files $uri =404;
  21.                 fastcgi_pass unix:/var/run/php5-fpm/forums.socket;
  22.                 fastcgi_index index.php;
  23.                 include /etc/nginx/fastcgi_params;
  24.         }
  25. }
Copy the Code

 Russia

Post time: 2013-12-04 12:06
| Show all posts
1) What the browser used?
2) Try another browser!
3) Show the "base" meta tag in your HTML page.
For example, our tag is:
<base href="http://codersclub.org/discuzx/" />
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-10-06 10:21 GMT+3 , Processed in 0.053634 sec., 7 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list