New answers tagged

0

<DirectoryMatch "/mnt/shared/apache_userdir/~(?<username>[^/]+)/private_html"> ... Require ldap-user %{env:MATCH_USERNAME} </DirectoryMatch> See DirectoryMatch, which has an example very similar to this. You need Apache 2.4.8 or later for it to work.


0

The extracted certificate had "Begin Trusted Certificate" as header. It needed to be "Begin Certificate." Please note that there are two files at /etc/pki/tls/certs/ - ca-bundle.crt -> /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem ca-bundle.trust.crt I made the mistake of referring to ca-bundle.trust.crt instead of ca-bundle.crt. ...


0

Run the command sudo ss -lptn 'sport = :80' to see what is using port 80. You will need to stop the service that is using port 80 before you can start httpd. You can't have both webservers running on the same port at the same time. Then to stop it, if it was nginx for example, run: sudo systemctl stop nginx


0

Ok found the solution, delete the httpd folder in opt and reinstall.


2

If I understand correctly, you want to redirect all non-HTTPS requests to HTTPS. So I guess your rewrites are in a <VirtualHost *:80> container, for a non-HTTPS site. Now you want to add another condition, to not redirect Lets Encrypt challenges. I think you're probably using the HTTP-01 challenge, which means you want to not redirect requests to http:/...


0

Since you said moving /var/www/html/BAR directory content to the /var/www/html/FOO/en directory is acceptable to you, do it and use the following configuration: server { ... root /var/www/html/FOO; index index.php index.html index.htm; location / { try_files $uri $uri/ /index.php?$args; } location /en/ { try_files $...


0

This problem was solved through struggling! I will share the situation I solved! First of all, the direction of approach was wrong from the start. It was correct in my situation. Entering the path 'home/ec2-user' into the DocumentRoot. See the code below. <VirtualHost *:80> DocumentRoot "/home/ec2-user" ServerName "test.dev" ...


Top 50 recent answers are included