Forum Moderators: phranque

Message Too Old, No Replies

404 errors when using https

         

thrasher141

9:28 pm on Sep 11, 2007 (gmt 0)

10+ Year Member



My site works fine on http, but all I get is 404 not found when I change it to https. I think there might be a separate folder where https docs are supposed to go (though I prefer that both http and https use the same files), but I cannot find that folder.

I have adminstrative access to the server - it is a VPS. The folder structure is like this -

/home/sitename/

/certs
/htmldocs - everything is in here

I'm on CentOS 4 and Apache 2. Thanks!

jdMorgan

10:18 pm on Sep 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If this is a server run by a hosting company, it would be faster to ask them -- There are no standard setups, so we here can only guess where you should put your files, or how you might change the configuration.

Jim

thrasher141

10:25 pm on Sep 11, 2007 (gmt 0)

10+ Year Member



Thanks Jim. It's a GoDaddy virtual dedicated server, and unfortunately they don't really support it. It is running CentOS 4 and Apache 2.

Is there a configuration file that lets you specify to use the same directory/files for http and https? I would rather have them use the same files.

jdMorgan

11:03 pm on Sep 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Generally, httpd.conf or conf.d, but there can be others.
You're looking for the <VirtualHost> containers. One will (may) say port 80, and the other 443. Change the one that says 443 so that its DocumentRoot points to the same place as port 80's. That may be all it takes. Make a backup copy first!

Jim