Photos are not showing up when using No-IP ddns and linux apache

277 views Asked by At

I don't have a static IP address so a person recommended that I use no-ip.com

I did and now my website is accessible from external internet yay

The problem now is that my photos aren't showing, I thought this would have been a simple issue

I'm not sure if I have to do something with Virtual Host or...

My domain name is greenace92.ddns.net

I can access my index.html file, that shows up fine but the photos aren't showing

On my httpd.conf file I have

ServerRoot "/usr/local/apache2"

The html files are in htdocs under apache2

So, on virtual host that httpd-vhosts.conf file I have the following

ServerAdmin "[email protected]"
DocumentRoot "/usr/local/apache2/"
ServerName "www.greenace92.ddns.net"

*ricekidengineer.com is my other domain with email configured

I didn't change the error logs from stuck "dummy" stuff

So on my html file for image href's I have

http://www.greenace92.ddns.net/htdocs/images/normalbus-icon-on.png

I assume that www.greenace92.ddns.net is /usr/local/apache2

So I'm just continuing the directory location

Is that correct? What is wrong?

Yeah I don't understand, I even tried three different directories for a few photos, trying directly in apache2, then htdocs, then the images folder

What am I not seeing?

1

There are 1 answers

6
kums On BEST ANSWER

You will have to decide what your want as the domain for your site:

  • www.greenace92.ddns.net is not setup for your web site

  • greenace92.ddns.net is the domain setup for your web site.

You either have to

  • configure no-ip.com to point to the domain www.greenace92.ddns.net

(or)

  • change your apache ServerName directive to

    ServerName "greenace92.ddns.net"
    

    and change the image URLs in your HTML pages from something like

      http://www.greenace92.ddns.net/htdocs/images/normalbus-icon-on.png  
    

    to

      http://greenace92.ddns.net/images/normalbus-icon-on.png
    

Note: With your current configuration, the 2nd URL mentioned above should already work (It worked when I tested!).