Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx Nginx config for basic html site with subfolder

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Mak Adang, Mar 2, 2016.

  1. Mak Adang

    Mak Adang Member

    39
    13
    8
    Jan 4, 2015
    Ratings:
    +14
    Local Time:
    1:58 AM
    1.9.0
    10.0.18-MariaDB
    Hi @eva2000,

    Please help, I try using centminmod for basic html site (non php site) and put some images in subfolder, how do i configure domain.conf so my html site can load images from subfolder. Currently the site is running but cannot display images.

    Attached screenshot for my html site directories.
    [​IMG]

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    4:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    there's nothing to configure, default centmin.sh menu option 2 or /usr/bin/nv cmd vhost creation outlined at Nginx Vhost & NSD DNS Setup - CentminMod.com LEMP Nginx web stack for CentOS should allow images to be served from any directory

    check your nginx vhost's access.log and error.log in /home/nginx/domains/yourdomain.com/log for clues as well as your web browser's developer tool's network tab while loading pages for further clues
     
  3. Mak Adang

    Mak Adang Member

    39
    13
    8
    Jan 4, 2015
    Ratings:
    +14
    Local Time:
    1:58 AM
    1.9.0
    10.0.18-MariaDB
    Hi Eva,
    Thanks for your respond, some configuration change just restore default configuration and it`s working now.

    Thank You
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    4:58 AM
    Nginx 1.13.x
    MariaDB 5.5
    Thanks for the follow up :)