This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Strange vhost issue
#3
RE: Strange vhost issue
The reason I have port 3000 is because I am running a react project which does some server side rendering which helps with my SEO.

Also, I feel like it worked like that at one point, but for some reason mine looks like this...

Code:
# DOMAIN: example.com
# PORT FORWARD FROM 80 TO: 443
<virtualhost *:443>
ServerName example.com
ServerAlias www.example.com
ServerAdmin zadmin@localhost
RewriteEngine on
ReWriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
</virtualhost>
# END DOMAIN: example.com

My override looks like this...

[Image: 2ylFBof.png]
Reply
Thanks given by:


Messages In This Thread
Strange vhost issue - by graveyardboogie - 05-04-2018, 11:50 AM
RE: Strange vhost issue - by TGates - 05-05-2018, 04:06 AM
RE: Strange vhost issue - by graveyardboogie - 05-05-2018, 04:21 AM
RE: Strange vhost issue - by TGates - 05-05-2018, 05:05 AM
RE: Strange vhost issue - by graveyardboogie - 05-05-2018, 05:20 AM
RE: Strange vhost issue - by TGates - 05-05-2018, 05:34 AM
RE: Strange vhost issue - by graveyardboogie - 05-05-2018, 05:42 AM
RE: Strange vhost issue - by TGates - 05-05-2018, 05:46 AM
RE: Strange vhost issue - by TGates - 05-05-2018, 10:54 AM
RE: Strange vhost issue - by graveyardboogie - 05-05-2018, 12:30 PM
RE: Strange vhost issue - by graveyardboogie - 05-08-2018, 07:27 AM
RE: Strange vhost issue - by TGates - 05-10-2018, 01:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Old issue on Daily Backup iraqiboy90 24 120 ,369 12-26-2020, 12:48 PM
Last Post: conglynina
Security issue urgent johnnyp 7 15 ,180 02-27-2020, 06:19 PM
Last Post: johnnyp
sub-domain issue kevwebbie 15 34 ,701 12-21-2018, 05:51 PM
Last Post: kevwebbie

Forum Jump:


Users browsing this thread: 1 Guest(s)