why in WAN do I need to type :80 to get my website

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
User avatar
ForSSkieken
Getting the hang of things
Posts: 61
Joined: Thu Sep 25, 2008 2:48 am
Location: Wijnegem

why in WAN do I need to type :80 to get my website

Post by ForSSkieken »

Hi There,

I have a problem which I would like to get rid of .

I would like to run a genealogy website "Webtrees"

I have enabled the webserver in the GUI
I have enabled virtual host /Web/webtrees 8081 https
I have a WAN,Lan "Webtrees" website
LAN http://192.168.1.5/webtrees/index.php?c ... d=Forssman working
WAN https://xxx.xxx.xxx.138:80/webtrees/ind ... d=Forssman working

The problem is that I would like to give another family member acces to this genealogy site, but that person needs to type the :80 port

Without the :80 port I get following error
Hmm, we can’t reach this page.
Try this
Make sure that you’ve got the right web address: https://xxx.xxx.xxx.138

Could somebody help me and tell me wat's wrong with my configuration?

Then there's the HTTPS not secure problem. How do I make sure that with a openssl certificate this doesn't happen anymore.


Thanks for reading
============================================================================================
TS-869L [RAID 5] Thick Provisioning 1 volume 6* 4TB


---------------------------------------------------------------------------------------------------------------------------------
TrueNAS on DELL R520
3 PC's in Workgroup
============================================================================================
aspomwell
Know my way around
Posts: 120
Joined: Thu Jun 22, 2017 2:27 am

Re: why in WAN do I need to type :80 to get my website

Post by aspomwell »

https by default goes over port 443 and it's not seeing anything there. Try it with http instead of https (not very secure).

edit: oops, didn't see second half of question on tiny screen. I haven't played with the web server much so I'd have to check it out. There's likely an option somewhere to force it to use ssl and then all traffic would go over 443 by default (including inside).
TVS-673 16GB 6x6TB WD Red WD60EFRX-68L0BN1 in RAID6
User avatar
dolbyman
Guru
Posts: 35276
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: why in WAN do I need to type :80 to get my website

Post by dolbyman »

yeah .. https on port 80 .. that should be your problem

so do http://xxx.xxx.xxx.138/webtrees/...

for the certificate if you actually want to go https .. you need a FQDN to get a certificate .. you can't get a valid certificate for an IP address
https://en.wikipedia.org/wiki/Fully_qua ... omain_name
User avatar
ForSSkieken
Getting the hang of things
Posts: 61
Joined: Thu Sep 25, 2008 2:48 am
Location: Wijnegem

Re: why in WAN do I need to type :80 to get my website

Post by ForSSkieken »

Thanks for all the info..

I have a green bar in my Chrome and I don't need the :80 anymore

I enabled Let's Encrypt in the myQNAPcloud and I changed the portforwarding rule on my internal router

IPv4-TCP From any host in wan Via any router IP at port 443 forward to IP 192.168.1.5, port 8081 in lan in PortForwarding OPENWRT

I had a secondary problem with this, the login page placed the :8081 into the path so I couldn't log in.

In the main login page for QNAP i Changed the standard ports from 8080 to 8086 for http and 8087 for https this is for accesing the gui
then I could changed the default port in the webserver port from 8081 to 443..
This seems to work I can login and no weird portnumbers appear in the url line

Thanks for reading
Guy
============================================================================================
TS-869L [RAID 5] Thick Provisioning 1 volume 6* 4TB


---------------------------------------------------------------------------------------------------------------------------------
TrueNAS on DELL R520
3 PC's in Workgroup
============================================================================================
clauswobbe
Starting out
Posts: 18
Joined: Thu Jun 10, 2010 3:46 pm
Location: Roskilde, DK

Re: why in WAN do I need to type :80 to get my website

Post by clauswobbe »

Hi ForSSkieken - it's been a long time since the last post. I hope I don't come across as trying to steal the thread:-)

I'm currently looking into finding a good (free) online genealogy solution. Is setting up WebTrees on your own QNAP NAS working? Can I ask you which apps or services you need to activate in order for it to work? I'm a novice in this area. I can find the Webserver service on QNap, but what about PHP? And as for SQL I can only find the SQL server - MariaDB. Will that do?

Thanks for any feedback or input :-)
User avatar
dolbyman
Guru
Posts: 35276
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: why in WAN do I need to type :80 to get my website

Post by dolbyman »

don't expose your nas to the www...it could get hacked

get cheap webspace...
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”