burgess85
Posts: 31
Joined: Wed Jul 03, 2013 5:57 pm

Apache

Mon Jul 22, 2013 9:21 am

I have uploaded html files to www and it displays when I goto my internal IP. When I goto my no-ip address I see
It works!
This is the default web page for this server.

The web server software is running but no content has been added, yet.

Where is this stored and how do I change it?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Apache

Mon Jul 22, 2013 9:31 am

The default location for those (assuming you are running Raspbian, Debian or similar) is in /var/www. The page you see is index.html

To work as a web page, any files stored in that location need to be readable by user www-data, or by group www-data.

burgess85
Posts: 31
Joined: Wed Jul 03, 2013 5:57 pm

Re: Apache

Mon Jul 22, 2013 10:53 am

Sorry the external IP address shows a different webpage than the internal address.

burgess85
Posts: 31
Joined: Wed Jul 03, 2013 5:57 pm

Re: Apache

Mon Jul 22, 2013 11:10 am

Accessing the pi from external IP address works fine but using my no-ip hostname is shows a different index.html file.

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Apache

Mon Jul 22, 2013 11:18 am

Have you got port forwarding on your router (if you have a router) to your Pi? You might be connecting to some other computer on your network.

Unless specifically configured for it, Apache will serve pages from the same location to any IP address. It shouldn't care if it local or external.

burgess85
Posts: 31
Joined: Wed Jul 03, 2013 5:57 pm

Re: Apache

Mon Jul 22, 2013 11:59 am

visiting from my external IP shows correct page but visiting from no-ip address which is linked to my external IP shows the default apache page.

Return to “Networking and servers”