webserver

pbecks1963
Posts: 51
Joined: Fri Dec 12, 2008 12:24 am
Location: Netherlands/Zutphen

Re: webserver

Postby pbecks1963 » Wed Jan 14, 2009 7:42 am

my router/firewall is NON pingable so nobody can ping my external ip-address, could that be the problem?

None of the below url's work:

https://fakenick.yourhda.com
https://123.23.4.5


?

result from https -S (in a terminal on hda):

bash: https: command not found

I am trying to access the webpage on my hda from WAN! (at work)

ps: tried the above with a PINGABLE router but that didn't make any difference... (so my router is set back to unpingable)

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: webserver

Postby cpg » Wed Jan 14, 2009 2:03 pm

my router/firewall is NON pingable so nobody can ping my external ip-address, could that be the problem?
that should not be an issue. many people set up their system to not be pingable. that avoids ping ECHO requests, that's all. everything works.

are you sure you don't want to use the VPN? :)
that's the safest. that or ssh.
None of the below url's work:

https://fakenick.yourhda.com
https://123.23.4.5
learn how to do port forwarding in your router here.
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
jfrenc14
Expert
Posts: 55
Joined: Wed Dec 03, 2008 8:13 pm

Re: webserver

Postby jfrenc14 » Wed Jan 14, 2009 4:13 pm

sorry it is 'http -S'

pbecks1963
Posts: 51
Joined: Fri Dec 12, 2008 12:24 am
Location: Netherlands/Zutphen

Re: webserver

Postby pbecks1963 » Thu Jan 15, 2009 12:40 am

Hello cpg,

I already use vpn (works perfect), but even with that (or local on the amahi server) the webpage i made is NOT visable. When i go to http://Mywebpage, i end up in the Amahi Setup page. (the url has changed into: http://hda/hda_app_Mywebpage)

Anyway, i am just sampling amahi (testing various possibilities). The server i used before amahi was FREENAS (and with that system i could easily make a webpage that was visable on the internet) On the other hand: FREENAS doesn't have the pxe-boot-backup possibilities of amahi. (for one thing)

Still love it (and prefer it over) FREENAS though.

pbecks1963
Posts: 51
Joined: Fri Dec 12, 2008 12:24 am
Location: Netherlands/Zutphen

Re: webserver

Postby pbecks1963 » Thu Jan 15, 2009 12:43 am

Hello jfrenc14,

"http -S" ? Where should i put/run this? (not in a DOS-BOX and not in a term, in both it gives an error/unknown command)

User avatar
jfrenc14
Expert
Posts: 55
Joined: Wed Dec 03, 2008 8:13 pm

Re: webserver

Postby jfrenc14 » Thu Jan 15, 2009 2:26 pm

Sorry run in the terminal "httpd -S"

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: webserver

Postby cpg » Thu Jan 15, 2009 2:54 pm

i see the problem. your ports are forwarded just fine.

do this (as root):

Code: Select all

rm /etc/httpd/conf.d/01-as.conf
this will take the redirection out. the next thing you need to do is to make sure your app is first.

so, let's assume the config file for your app is called 1004-myapp.conf. in that case, do this (as root):

Code: Select all

cd /etc/httpd/conf.d/ mv 1004-myapp.conf 01-myapp.conf service httpd restart
that should get your app by default!
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
jfrenc14
Expert
Posts: 55
Joined: Wed Dec 03, 2008 8:13 pm

Re: webserver

Postby jfrenc14 » Thu Jan 15, 2009 3:14 pm

cpg thats right, Forgot about that

pbecks1963
Posts: 51
Joined: Fri Dec 12, 2008 12:24 am
Location: Netherlands/Zutphen

Re: webserver

Postby pbecks1963 » Fri Jan 16, 2009 3:56 am

I still cant access my webpage externaly (wan) or Internally (lan). When i go to the dashboard and click (at Webapps) on : http://Webpage (that's the name off my first appl) i am redirected to the Amahi Wiki (url is not changed this time: http://Webpage)

pbecks1963
Posts: 51
Joined: Fri Dec 12, 2008 12:24 am
Location: Netherlands/Zutphen

Re: webserver

Postby pbecks1963 » Fri Jan 16, 2009 4:54 am

YES YES YES!!! It works!!!!!!


thnx to you all for helping......

Who is online

Users browsing this forum: No registered users and 63 guests