LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Can't seem to find default index.html file? Ubuntu LAMP (https://www.linuxquestions.org/questions/linux-server-73/cant-seem-to-find-default-index-html-file-ubuntu-lamp-4175582960/)

wh33t 06-23-2016 11:45 PM

Can't seem to find default index.html file? Ubuntu LAMP
 
Hey LQ,

I've got a small server running off of a home adsl connection. I'm currently trying to get it setup for https (which I think I've got working properly) and for some reason when visiting the site through regular http I'm given the default apache "It works" Apache2 Ubuntu Default Page. I only have one virtualhost set (I a2dissite'd the defaults) and yet this default page is still being served.

I've also deleted it from /var/www/html which is where the virtualhost points to for document root and yet its still being served!

How is Apache2 still loading this html page?

Code:

wh33t@wh33tserv:/etc/apache2$ ls sites-enabled/
wh33t.conf

Code:

wh33t@wh33tserv:/etc/apache2$ sudo nano sites-enabled/wh33t.conf
Code:

Listen 81
<VirtualHost *:81>
    DocumentRoot "/var/www/html/"
    ServerName wh33tserv

    # Other directives here
    SSLEngine on
    SSLCertificateFile /etc/ssl/crt/wh33tserv.crt
    SSLCertificateKeyFile /etc/ssl/crt/wh33tserv.key
</VirtualHost>

Any ideas?

j-ray 06-24-2016 02:45 AM

Maybe it is simply cached by the browser?

wh33t 06-24-2016 03:35 AM

Quote:

Originally Posted by j-ray (Post 5565598)
Maybe it is simply cached by the browser?

Well don't I feel stupid. That solved it. I thought I had that disabled in my browser lol. Guess not.

Thanks for chiming in.


All times are GMT -5. The time now is 02:54 PM.