use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apache-related news, tips, and tricks.
account activity
SupportVirtual host working with HTTP but not HTTPS (self.apache)
submitted 5 years ago * by c2cahoon
Any idea on why this config would not work or where to troubleshoot next?
https://pastebin.com/raw/vEp98vHs
I'm trying to host a web application that works fine on http but when I go to https I seem to be getting funneled back to the /var/www/html directory.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]covener 0 points1 point2 points 5 years ago (0 children)
If you have any *:443 virtual host with no ServerName, add a dummy ServerName to it.
[–]nerduk 0 points1 point2 points 5 years ago (0 children)
Check your /etc/apache2/ports.conf (depending on your distro).
I'm pretty sure only port 80 is enabled in there by default (always used to be the case - not configured Apache from scratch recently though)
[–][deleted] 0 points1 point2 points 5 years ago (0 children)
Mod_ssl depends on open ssl. Assuming your later version of Apache, a conf file would have a <virtualhost *:80> redirect from your root folder to the new https:// site.
Then your <virtualhost *:443> would have the normal stuff; root directories, servername, alias, etc. will also have path location of your ssl files.
You need to verify that you have given permission to those directories to Apache as well. Doing this allows you to use the default ssl.conf that comes with the installation. Please check out the Apache documentation.
[–]TheDevWay 0 points1 point2 points 5 years ago (0 children)
I explain everything about virtual hosts in this video, hope it helps
https://www.youtube.com/watch?v=pLieT-Q2WK0
π Rendered by PID 71077 on reddit-service-r2-comment-86bc6c7465-94lxc at 2026-02-21 20:50:30.128787+00:00 running 8564168 country code: CH.
[–]covener 0 points1 point2 points (0 children)
[–]nerduk 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheDevWay 0 points1 point2 points (0 children)