How to use the built in webserver?

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

How to use the built in webserver?

Postby muppets4 » Mon Oct 17, 2011 5:46 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How to use the built in webserver?

Postby bigfoot65 » Mon Oct 17, 2011 9:27 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: How to use the built in webserver?

Postby muppets4 » Mon Oct 17, 2011 1:28 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How to use the built in webserver?

Postby bigfoot65 » Mon Oct 17, 2011 2:34 pm

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: How to use the built in webserver?

Postby muppets4 » Mon Oct 17, 2011 3:23 pm

It worked!

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How to use the built in webserver?

Postby bigfoot65 » Mon Oct 17, 2011 3:24 pm

Of course it did LOL
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

muppets4
Posts: 31
Joined: Sun Oct 02, 2011 3:06 am

Re: How to use the built in webserver?

Postby muppets4 » Mon Oct 17, 2011 4:15 pm

yeah, great help!

tomsserver
Posts: 5
Joined: Tue Jan 07, 2014 10:23 am

Re: How to use the built in webserver?

Postby tomsserver » Sun Feb 09, 2014 9:17 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How to use the built in webserver?

Postby bigfoot65 » Sun Feb 09, 2014 9:40 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 22 guests