Thanks Daniel and @lbutlr!
OK, did that. I moved the auth user file lines from the *:80 to the
*:443 vhosts. I also in desperation added
Require all denied
to the :443 vhost.
Suddenly, going to the subdir gives me the login prompt!
But of course the top dir and all the other subdirs are
On 20 Apr 2021, at 06:59, Adrian wrote:
> Daniel Ferradal wrote:
>>
>> ServerName whatever.example.com
>> Redirect / https://whatever.example.com/
>> CustomLog logs/whatevever.example.com.log common
>>
This is one more line that my port 80 configs have, I do not log connections to
port 80.
>
Just define the appropriate *:80 virtualhosts with the redirects and
without taking any shortcuts in the configuration like I showed you,
if it works for you then you can worry later about making it all fancy
and brief.
El mar, 20 abr 2021 a las 15:00, Adrian
() escribió:
>
> Thanks again
>
> So i
Thanks again
So if I redirect to the https version I can out all my per-directory
config into the *:443 vhost entry?
My worry is where that leaves some primitive browsers that don't
support SSL. Can they not access the page at all? Do they use the
*:80 vhost entry and bypass any config that's i
Generally I would never define virtualhosts with , I
think it is better and more straightforward to specify everything,
specially when starting to admin your first apache servers. For
example purposes, let's say I would define them like these in a more
straightforward way:
Listen 80
Listen 443
S
Thanks again Daniel
I've added a ServerName line to the top level vhost with the name of my
server. No change.
Yes, there are two files in sites-enabled, 000-default and 000-ssl. I
suspect that's the cause of the problem.
I'd thought that 000-ssl only had SSL-related things and had assumed
tha
Hello,
This says you have two virtualhosts pointing to the same name, so only
the first one will be used:
(/etc/apache2/sites-enabled/000-default.conf:46) *:443
is a NameVirtualHost default server www.example.org
(/etc/apache2/sites-enabled/000-ssl:2) port 443 namevhost
www.example.org
But still
Thanks Daniel.
I had one redundant .htaccess file in the vhost domain, now removed.
Restarted and no change.
Results of apachectl -S below:
apachectl -S
[Tue Apr 20 11:22:05.839049 2021] [so:warn] [pid 2744] AH01574: module
ssl_module is already loaded, skipping VirtualHost configuration:
*:*
Check "apachectl -S" output in case there is some other virtualhost
there getting the requests.
That virtualhost as it is should deny access, if it is not, then there
is something missing in what you show. Not sure if it may be another
virtualhost or another virtualhost and .htaccess, etc.
El mar
using Apache/2.4.38 (Debian)
with Debian-style split config.
Here are the relevant bits of a vhost. This is
in /etc/apache2/sites-enabled/000-default.
ServerName www.example.org
DocumentRoot /var/www/example
CustomLog /var/log/apache2/example/access.log combined
# DISABLE THE ENTIRE DOCROO
10 matches
Mail list logo