Changes

From Amahi Wiki
Jump to: navigation, search
7 bytes removed ,  03:15, 9 August 2011
no edit summary
This is an example of how to force an app access via https. For this example, AjaXplorer will be used but this will work with any app.
* Go to you config file for apache, ''':{{Code|cd /etc/httpd/conf/'''}}* Now it is time to create a key and a crt. It will ask you a few questions, just make sure that the '''Common Name'''is the domain name:{{code|openssl genrsa -out filename.key 1024''' then '''openssl req -new -key filename.key -x509 -days 1000 -out filename.crt''' It will ask you a few questions, just make sure that the '''Common Name''' is the domain name.}}* Next open up httpd.conf with you favorite editor and add '''the following to the end:{{Text|NameVirtualHost *:443''' somewhere in the conf file}}* Open terminal and do '''yum -y install mod_ssl''' which is (needed by apache to make this work.):{{Code|yum -y install mod_ssl}}* Now go to '''Find the file that has ajaxplorer in its name:{{Code|cd /etc/httpd/conf.d/''' and find the file that has ajaxplorer in its name. You can type '''ls''' to list the files. And open it up with a text editor}}
* Edit it to like this:
{{Code|<pre>
<VirtualHost *:443>
ServerName ajaxplorer
</VirtualHost>
</pre>}}
* Finaly create a file called 1026-ajaxplorerhttp.conf (note that the number may change for you) and put in this (also change things like the website name and etc):
{{Code|<pre>
<VirtualHost *:80>
ServerName username.yourhda.com
</VirtualHost>
</pre>}} * Now you need to restart apache:{{Code|service httpd restart}}
And that's all, you now have 128 bit encryption for ajaxplorer.
12,424

edits