Changes

From Amahi Wiki
Jump to: navigation, search
3,429 bytes added ,  04:16, 21 November 2010
I figured I would share how to host a website, not a webapp, for more "advanced" users
== Requirements ==
For the purposes of this guide you need either of the following:
 
* [[VNC]] access to your HDA if headless
** ''Terminal is available under Applications -> System Tools -> Terminal''
* [http://www.amahi.org/apps/ajaxterm Ajaxterm] if headless and no VNC
* A monitor if you are not headless
To host your own web site you need the following:
== Hosting a single Webapp ==
What you need to do in a terminal (as root) is find the apps conf file then edit the conf file for the app:
su
:#For example, you could create the subdomain/CNAME: address.yourdomain.com for the AddressBook webapp---point that subdomain to: username.yourhda.com---in the AddressBook .conf file add: ServerAlias address.yourdomain.com---restart the server---you are done, enjoy using multiple webapps!
 
== Hosting a Website ==
 
''Prerequisites'': The first order of business is to make sure that your domain name is pointing to your server's IP address. Each website is different, but GoDaddy goes like this:
:* Go to your GoDaddy's ''My Account'' page. Under Dashboard, click yourdomain.com
:** Point your cursor at the Nameserver icon, click ''Set Nameservers'' [[File:Nameserverlink.jpg|caption]]
:** Select ''I want to '''forward''' my domains'' and click OK [[File:forwarddomainname.jpg|frameless|caption]]
:* Now go back to your account homepage, and instead of clicking yourdomain.com, check it and click ''View in Domain Manager''
:** Click yourdomain.com
:** Scroll down to '''DNS Manager''' and click ''Launch'' [[File:DNSmanagger.jpg|frameless|caption]]
:** Under '''A(Host)''' edit the IP Address(es) to reflect the IP Address of your server. Hit enter and then ''Save Zone File'' when that option appears.[[File:ahostpointsto.jpg|frameless|caption]]
:* The effects should appear within one hour
 
''Hosting'': Hosting a website on your HDA server is basically the same as hosting a webapp, so if we are able to do the previous guides on hosting a webapp(s) the rest will be a cinch.
 
We will create the website by creating a webapp. This is a lot easier than it sounds, so don't give up just yet!
# Got your HDA page (http://hda or http://hda.yourhda.com), click ''Setup'' and go to ''Settings''.
## Make sure your ''Advanced Settings'' option is checked (if not, check and click OK past the warning)
# Go to ''Apps'' and then ''Webapps''
# At the very bottom, click ''New Web App'' and type in a name like Website
:This is where your webpage will reside in, you can name this anything you'd like. This is not the title of your website or webpage. Website will be used as the name for this guide [[File:newebapp.jpg|frameless|caption]]
# Do everything as told above under the "Hosting a single Webapp" heading above, but of course our app is called Website.
:''Hint:'' Instead of using user.yourhda.com for your ServerAlias, go ahead and use yourdomain.com ('''without the www.''') if you have one from, for example, GoDaddy.
# To easily access your website files, we will make the webapp folder a share by doing the following:
:* In your HDA Dashboard, click ''Setup'' and then ''Shares''
:* Click ''New Share'' at the very bottom
:* We will name our share Website
:** Notice that the path is automatically filled out for us. This is not the path that will be used, so the path that will be typed in will be ''/var/hda/web-apps/Website/'' [[File:newshare.jpg|frameless|caption]]
:* Click ''Create this Share'', now the folder will be available from your normal \\hda spot.
:** You can test your new website by creating an index.html (put something simple, like "hi", as a text) in the html folder in your Website share folder, and then going to yourdomain.com
 
And we are finished. To create your website on Fedora, we can use Bluefish program.
: yum install bluefish
If we would like to use Windows, we can use any program to make the website. Just drag and drop into the share, and under the folders as needed.
== FAQ ==
110

edits