403 Forbidden



  • Hello i setup my Nodebb i follow all the step

    4/8 14:41 [5692] - info: [database] Checking database indices.
    Populating database with default configs, if not already set...
    Previous theme detected, skipping enabling default theme
    Categories OK. Found 4 categories.
    Administrator found, skipping Admin setup
    4/8 14:41 [5692] - info: Global Moderators group found, skipping creation!
    Enabling default plugins
    4/8 14:41 [5692] - info: [install/defaultPlugins] customDefaults undefined
    4/8 14:41 [5692] - info: [install/enableDefaultPlugins] activating default plugins 0=nodebb-plugin-composer-default, 1=nodebb-plugin-markdown, 2=nodebb-plugin-mentions, 3=nodebb-widget-essentials, 4=nodebb-rewards-essentials, 5=nodebb-plugin-soundpack-default, 6=nodebb-plugin-emoji-extended, 7=nodebb-plugin-emoji-one
    4/8 14:41 [5692] - info: Beginning database schema update
    4/8 14:41 [5692] - info: [2015/12/15] Chats upgrade skipped!
    4/8 14:41 [5692] - info: [2015/12/23] Chats room hashes upgrade skipped!
    4/8 14:41 [5692] - info: [2015/12/23] Adding theme to active plugins sorted set skipped!
    4/8 14:41 [5692] - info: [2016/01/14] Creating user best post sorted sets skipped!
    4/8 14:41 [5692] - info: [2016/01/20] Creating users:notvalidated skipped!
    4/8 14:41 [5692] - info: [2016/01/23] Creating Global moderators group skipped!
    4/8 14:41 [5692] - info: [2016/02/25] Social: Post Sharing skipped!
    4/8 14:41 [5692] - info: [2016/04/14] Group title from settings to user profile skipped!
    4/8 14:41 [5692] - info: [2016/04/19] Users post count per tid skipped!
    4/8 14:41 [5692] - info: [2016/04/29] Dismiss flags from deleted topics skipped!
    4/8 14:41 [5692] - info: [2016/05/28] Giving topics:read privs to any group that was previously allowed to Find & Access Category - skipped!
    4/8 14:41 [5692] - info: [2016/06/13] Store upvotes/downvotes separately skipped!
    4/8 14:41 [5692] - info: [upgrade] Schema already up to date!
    
         ========================================================================================================================================================
    
    NodeBB Setup Completed. Run './nodebb start' to manually start your NodeBB server.
    root@main:/srv/users/serverpilot/apps/learn2/public# ./nodebb start
    
    Starting NodeBB
      "./nodebb stop" to stop the NodeBB server
      "./nodebb log" to view server output
      "./nodebb restart" to restart NodeBB
    
    root@main:/srv/users/serverpilot/apps/learn2/public# ./nodebb log
    
    Type Ctrl-C to exit
    
    4/8 14:35 [5514] - info: [app] Database connection closed.
    4/8 14:35 [5514] - info: [app] Web server closed to connections.
    4/8 14:35 [5514] - info: [app] Shutdown complete.
    [cluster] Child Process (5514) has exited (code: 0, signal: null)
    4/8 14:35 [5597] - info: Time: Thu Aug 04 2016 14:35:35 GMT+0300 (EEST)
    4/8 14:35 [5597] - info: Initializing NodeBB v1.1.0
    4/8 14:35 [5597] - info: [database] Checking database indices.
    4/8 14:35 [5597] - info: NodeBB Ready
    4/8 14:35 [5597] - info: Enabling 'trust proxy'
    4/8 14:35 [5597] - info: NodeBB is now listening on: 0.0.0.0:4567
    

    My configuration for nginx-sp looks correct:

    location / {   
        location / {
        root /srv/users/serverpilot/apps/learn2/public;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-NginX-Proxy true;
            proxy_pass http://0.0.0.0:4567;
            proxy_redirect off;
            # Socket.IO Support
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
        }
    }
    

    nginx-sp -t
    nginx: the configuration file /etc/nginx-sp/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx-sp/nginx.conf test is successful

    I dont understand whats happend
    Thanks in advance



  • APACHE LOG

    [Thu Aug 04 14:12:28.167664 2016] [autoindex:error] [pid 3671:tid 139841928922880] [client 61.90.3.11:57316] AH01276: Cannot serve directory /srv/users/serverpilot/apps/learn2/public/: No matching DirectoryIndex (index.html,index.htm,index.php) found, and server-generated directory index forbidden by Options directive
    "_apache.error.log" 49L,


  • Admin

    Are you using nginx or Apache? You cannot use both.



  • I use Nginx its for that i dont understand why i got this error


  • Admin

    Your log is truncated, run less logs/output.log to see the entire log.



  • Ok i understand its because i use serverpilot on this server and he use apache


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.