View previous topic :: View next topic |
Author |
Message |
anddrej -
Joined: 12 Jan 2019 Posts: 3
|
Posted: Mon Dec 04, 2023 12:11 pm Post subject: Writing url without www shows error403, forbiden |
|
|
Hello,
my 2nd post here in 20 years of using it without any problems. in last months i decided to made some upgrades and one of then was also SSL and X2.
When someone write:
http://www.cassettedeck-service.com
or
https://www.cassettedeck-service.com
all is OK.
But when is writen:
http://cassettedeck-service.com
or
cassettedeck-service.com
i got ERROR 403, FORBIDEN
How to solve this problem? I already tried in server URL Rewriting Rules, but without sucess.
Thank You,
Andrej
Last edited by anddrej on Tue Dec 05, 2023 9:10 pm; edited 1 time in total |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Horizon -
Joined: 18 Feb 2022 Posts: 54
|
Posted: Mon Dec 04, 2023 5:14 pm Post subject: |
|
|
Hello,
Abyss's 403 Forbidden error is typically because you have www.cassettedeck-service.com as one of for hostnames, but not the non-www version (cassettedeck-service.com).
You have to make sure that you have the non-www version in your Abyss host's general configuration page.
That should fix the problem directly.
If not then delete the SSL certificate that has this hostname within the Abyss's kcstore directory (a random_chars.acme.crt file, restart the server afterwards).
For the URLRewrite, it depends on how exactly you do your rewrite, but you could do a 302 external redirect.
Basically the rewrite rule is global for ^(.*)$ and if the variable HTTPS doesn't match with ^On$ then redirect to:
https://%{SERVER_NAME}$1
HTTPS is how we know that HTTPS is present or not, SERVER_NAME contains the domain name that Abyss answered for.
%{VARIABLE_NAME} is the syntax that allows putting CGI variables in the redirect field.
You probably will not need it for this problem, but I do have a custom XSSI error page that you can use as your default error page when troubleshooting errors:
https://workupload.com/start/kbv3ta4FPBL
It translates the HTTP error code to text & does #printenv, in a nicely presented webpage (no bloat, not even JS).
More about CGI variables in a list, it's just not up-to-date yet in the online version (for "HTTPS" set to "On"):
https://aprelium.com/data/doc/2/abyssws-win-doc-html/cgivars.html |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
anddrej -
Joined: 12 Jan 2019 Posts: 3
|
Posted: Tue Dec 05, 2023 9:19 pm Post subject: |
|
|
Thank you for your quick and detailed reply.
Yes...i only needed to add. cassettedeck-service.com to hosts general and it works.
Thank you again |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|