Get the most out of your Centmin Mod LEMP stack
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

    46
    14
    8
    Jan 4, 2015
    Ratings:
    +16
    Local Time:
    5:46 PM
    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

    37,217
    8,128
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,514
    Local Time:
    8:46 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    46
    14
    8
    Jan 4, 2015
    Ratings:
    +16
    Local Time:
    5:46 PM
    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

    37,217
    8,128
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,514
    Local Time:
    8:46 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Thanks for the follow up :)
     
..