Want to subscribe to topics you're interested in?
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

    62
    20
    8
    Jan 4, 2015
    Ratings:
    +23
    Local Time:
    10:37 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

    54,934
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    1:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    62
    20
    8
    Jan 4, 2015
    Ratings:
    +23
    Local Time:
    10:37 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
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,934
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    1:37 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Thanks for the follow up :)