Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8637989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:36:49+00:00 2026-06-12T10:36:49+00:00

I’m trying to set up a wiki at wiki.lightenedblade.com when I try to go

  • 0

I’m trying to set up a wiki at wiki.lightenedblade.com when I try to go to that link, it gives me a 404 message

However, my configs and LocalSettings files seems to be in order just not the nginx configurations. here’s my NginX configs:

    server {
            listen  80;
            server_name lightenedblade.com www.lightenedblade.com;
            root /home/metalmine/public_html/lightenedblade;

            location / {
                    autoindex on;
                    index index.html;
            }
        location ~ \.php$ {
                    fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
                    fastcgi_index  index.php;
                    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
                    autoindex on;
                    index index.php;
                    include        fastcgi.conf;
        }

    }

    server {
            server_name wiki.lightenedblade.com;
            root /home/metalmine/public_html/lightenedblade/w;

            # Location for the wiki's root
        location / {
            # Do this inside of a location so it can be negated
            location ~ \.php$ {
                try_files $uri $uri/ =404; # Don't let php execute non-existent php files
                include /etc/nginx/fastcgi_params;
                fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
            }
        }

        location /images {
            # Separate location for images/ so .php execution won't apply

            location ~ ^/images/thumb/(archive/)?[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ {
                # Thumbnail handler for MediaWiki
                # This location only matches on a thumbnail's url
                # If the file does not exist we use @thumb to run the thumb.php script
                try_files $uri $uri/ @thumb;
            }
        }
        location /images/deleted {
            # Deny access to deleted images folder
            deny    all;
        }

        # Deny access to folders MediaWiki has a .htaccess deny in
        location /cache       { deny all; }
        location /languages   { deny all; }
        location /maintenance { deny all; }
        location /serialized  { deny all; }

        # Just in case, hide .svn and .git too
        location ~ /.(svn|git)(/|$) { deny all; }

        # Hide any .htaccess files
        location ~ /.ht { deny all; }

        # Uncomment the following code if you wish to hide the installer/updater
        ## Deny access to the installer
        #location /mw-config { deny all; }

        # Handling for the article path
        location /wiki {
            include /etc/nginx/fastcgi_params;
            # article path should always be passed to index.php
            fastcgi_param SCRIPT_FILENAME   $document_root/index.php;
            fastcgi_pass  unix:/var/run/php-fpm/php-fpm.sock;
        }

        # Thumbnail 404 handler, only called by try_files when a thumbnail does not exist
        location @thumb {
            # Do a rewrite here so that thumb.php gets the correct arguments
            rewrite ^/images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /thumb.php?f=$1&width=$2;
            rewrite ^/images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ /thumb.php?f=$1&width=$2&archived=1;

            # Run the thumb.php script
            include /etc/nginx/fastcgi_params;
            fastcgi_param SCRIPT_FILENAME   $document_root/thumb.php;
            fastcgi_pass  unix:/var/run/php-fpm/php-fpm.sock;
        }

    }

And here’s my LocalSettings: https://gist.github.com/3794836

Thank you for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:36:51+00:00Added an answer on June 12, 2026 at 10:36 am

    What’s the problem you’re having exactly?

    I do notice the secound “server” is not “listening”… you have server_name, but not a listen 80 for example…

    Try nginx -t

    It usually tell you if something is wrong in the config and where!

    EDIT (Comment isn’t very readable)

    404 is not found… so the the server is listening but didn’t find the page you requested (1).

    I noticed you also have:

    location / {
                # Do this inside of a location so it can be negated
                location ~ \.php$ {
                    try_files $uri $uri/ =404; # Don't let php execute non-existent php files
    

    (1) You requested the “root” of the mobile site so nginx will look for and “index.*”

    But you don’t have an “index.php”

    You can add ” index index.php;” assuming the mobile site is php and the file index.php exists of course

    Hope this solves you problem

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.