Page 1 of 1
How to use the built in webserver?
Posted: Mon Oct 17, 2011 5:46 am
by muppets4
I have located /var/www/html/ and have put a simple site there. The apache server is running and my router redirects port 80 to the HDA.
When I enter my external IP adress in a browser, the Amahi login screen is presented. I've tried to put my site in a subfolder, let's call it 2, but when I do a
http://xx.xx.xx.xxx/2/ in my browser, I am still presented with the Amahi login screen.
What folder is the Amahi server using?
Small update: I have logged in at webmin, went to the apache server and created a virtual server on port 90. I've forwarded that port to the HDA and used the /var/www/html folder as root. No succes. Then I tried /svr/www/public_html with port 90 and still no succes.
Re: How to use the built in webserver?
Posted: Mon Oct 17, 2011 9:27 am
by bigfoot65
To use as a web server, you need to create a web app. If you have advanced settings on, you will see the web app link in applications tab.
Put your files in the /var/hda/web-apps/appname where appname is the name you used when creating the web app.
Amahi does not use the /var/www/html directory as most servers do for serving web pages. It used the web-apps directory.
Re: How to use the built in webserver?
Posted: Mon Oct 17, 2011 1:28 pm
by muppets4
Ha, it's you and me again! Great. I've created a webapp and it works by clicking the
http://website link I've created by doing that. But what is the external adress for the site?
Re: How to use the built in webserver?
Posted: Mon Oct 17, 2011 2:34 pm
by bigfoot65
Follow the guidance in the wiki for exposing apps outside the network. Basically you will add:
ServerAlias username.yourhda.com
to your web app .conf file located in /etc/httpd/conf.d directory.
Re: How to use the built in webserver?
Posted: Mon Oct 17, 2011 3:23 pm
by muppets4
It worked!
Re: How to use the built in webserver?
Posted: Mon Oct 17, 2011 3:24 pm
by bigfoot65
Of course it did LOL
Re: How to use the built in webserver?
Posted: Mon Oct 17, 2011 4:15 pm
by muppets4
yeah, great help!
Re: How to use the built in webserver?
Posted: Sun Feb 09, 2014 9:17 am
by tomsserver
Okay, even though 7.1 makes the creation of a web-app a real pain, I got it going and now when I use an external dyndns type address I do indeed see the website. Now, I would like to use joomla or drupal to edit the website at /var/hds/web-apps/website/html. How do I link these tools to the website? Ideally there would be a "publish" type menu item in the joomla or drupal system, but a hard link would also be acceptable. It just seems like drupal and joomla in their present form are pretty much useless.
Re: How to use the built in webserver?
Posted: Sun Feb 09, 2014 9:40 am
by bigfoot65
Same wiki reference to host apps. If you are wanting to put links on your website page, that may be a bit more complicated.
For something of that nature, you may need to search the internet. There should be plenty of guidance on how to do it.