logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Apache responds in https, but only by test page, not my webs

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
twsapache



Joined: 12 Aug 2017
Posts: 1
Location: Italia

PostPosted: Sat 12 Aug '17 18:58    Post subject: Apache responds in https, but only by test page, not my webs Reply with quote

Hi,

In order to switch from http to https, I have already obtained my SSL certificates. But my problem is to run the Apache webserver (Server version: Apache/2.4.23 (Fedora) with https (no problems with http). I mean. For the http I'm using succesfully:

<VirtualHost *:80>
ServerAdmin myname@mydomain.com
DocumentRoot /home/web/mydomain.com
ServerName mydomain.com
</VirtualHost>

But when I define also:

<VirtualHost *:443>
ServerAdmin fabio.gervasi@centrometeo.com
DocumentRoot /home/web/centrometeo.com
ServerName centrometeo.com
ErrorLog logs/https-centrometeo.com-error_log
CustomLog logs/https-centrometeo.com-access_log common
</VirtualHost>

the server responds in https, typing in the browser https://www.mydomain.com (obviously giving me a certificate warning because I have the certificate but I have not yet configured the server with it) but return to me only the Apache test page and not the site. If I try other site pages I obtain "Not Found".
Browsing http://www.mydomain.com, instead, everything is ok, as usually.

Where do I wrong?

After a few attempts to access via https, empty log files were created, so there is nothing in the my https logs.

Thank you very much,
Fabio.
Back to top
maba



Joined: 05 Feb 2012
Posts: 53
Location: Germany, Heilbronn

PostPosted: Fri 18 Aug '17 19:09    Post subject: Reply with quote

Maybe your virtualhost for 443 is missing it's document root.

Check into your main httpd.conf file and copy both documentroot specs into the virtualhost block for testing.

The first documentroot part is the relative path.
The second documentroot part is the absolute path.

They should both be configured in httpd.cond.

They might as well be configured in your port:80 virtualhosts. So just give that a try.

Later on you can still sort out whether you want that spec in the virtualhost config or in the ssl config (common default for all SSL sites).
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1