Changes

From Amahi Wiki
Jump to: navigation, search
no edit summary
'''Acces your Joomla site over Https (HyperText Transfer Protocol Secure)'''[[image:Joomla_logo.jpg]]
'''NOTE:''' This has not been tested with Amahi 7 or greater. Following this guidance is at your own risk and could break your HDA.
=Step 1 - Setting up port forwarding=
=Step 1=* Forward port 443 to your HDA IP address (example: 192.168.2.10)
=Step 2- Install ssl module=
*foward port 443 to your HDA ip adres (example: 192.168.2.10)Type the following command **<code>yum -y install mod_ssl</code>
=Step 3 - Create Certificate=
* Go to your config file for apache,
**<code>cd /etc/httpd/conf/</code>
=Step 2=* create a key and a self-signed certificate**<code>openssl genrsa -out filename.key 1024</code> **<code>openssl req -new -key filename.key -x509 -days 1000 -out filename.crt</code>
=Step 4 - Edit httpd config files=
*go Go to the folder /etc/httpd/conf ''** <code>cd /etc/httpd/conf''</code>*** You can type <code>ls</code> to list the files.
*You can type ls to list the filesEdit httpd.conf** <code>nano httpd.conf</code>
*edit httpd.confInsert a new line with the following: ''nano httpd.conf''** <code>NameVirtualHost *:443</code>
*add NameVirtualHost Save httpd.conf*:443* control+O
*save httpd.conf Exit nano** control+OX
*exit nano control+X =Step 5 - Edit Joomla config files=
* Go to the folder /etc/httpd/conf.d
** <code>cd /etc/httpd/conf.d</code>
*** You can type <code>ls</code> to list the files.
=Step 3=* Edit the joomla config file** <code>nano ****-joomla.conf</code> *** ''(note that the number may change for you)(example: 1006-joomla.conf)''
* Add the following text on a new line:
<pre><VirtualHost *:443>
*go to the folder etc/httpd/conf ServerName joomla ServerAlias username.d ''cd etc/httpd/confyourhda.d''com:443
*You can type ls to list the files SSLEngine On SSLCertificateFile /etc/httpd/conf/filename.crt SSLCertificateKeyFile /etc/httpd/conf/filename.key
*edit the joomla config file ''nano ****-joomla.conf'' (note that the number may change for you)(example: 1006 DocumentRoot /var/hda/web-apps/joomla.conf) /html
*add the following text: <Directory "/var/hda/web-apps/joomla/html"> Options Indexes FollowSymLinks +ExecCGI AddHandler fcgid-script .fcg AllowOverride AuthConfig Order allow,deny Allow from all </Directory>
</VirtualHost></pre>
<VirtualHost *:443>  ServerName joomla ServerAlias username.yourhda.com:443  SSLEngine On SSLCertificateFile /etc/httpd/conf/filename.crt SSLCertificateKeyFile /etc/httpd/conf/filename.key  DocumentRoot /var/hda/web-apps/html  <Directory "/var/hda/web-apps/joomla"> Options Indexes FollowSymLinks +ExecCGI AddHandler fcgid-script .fcg AllowOverride AuthConfig Order allow,deny Allow from all </Directory>  </VirtualHost>  *save Save your web-app.conf ** control+O *exit nano control+X 
* Exit nano
** control+X
[[image:1006-joomlaconf.jpg]]
=step 6 - Restart httpd service=
* Restart your httpd service by issuing the following:
** <code>service httpd restart</code>
=step 4=<strong>Enjoy</strong>
[[image:joomla.jpg]]
*restart your httpd service ''service httpd restart''  Enjoy = See also =[[image:joomla.jpgAccess HDA over SSL]]
12,424

edits