Difference between revisions of "Access Joomla over HTTPS"
From Amahi Wiki
| Line 1: | Line 1: | ||
[[image:Joomla_logo.jpg]] | [[image:Joomla_logo.jpg]] | ||
| − | '''NOTE:''' This has not been tested with Amahi 7. Following this guidance is at your own risk and could break your HDA. | + | '''NOTE:''' This has not been tested with Amahi 7/8. Following this guidance is at your own risk and could break your HDA. |
=Step 1 - Setting up port forwarding= | =Step 1 - Setting up port forwarding= | ||
Revision as of 22:32, 14 September 2015
NOTE: This has not been tested with Amahi 7/8. Following this guidance is at your own risk and could break your HDA.
Contents
Step 1 - Setting up port forwarding
- Forward port 443 to your HDA IP address (example: 192.168.2.10)
Step 2- Install ssl module
- Type the following command
yum -y install mod_ssl
Step 3 - Create Certificate
- Go to your config file for apache,
cd /etc/httpd/conf/
- create a key and a self-signed certificate
openssl genrsa -out filename.key 1024openssl req -new -key filename.key -x509 -days 1000 -out filename.crt
Step 4 - Edit httpd config files
- Go to the folder /etc/httpd/conf
cd /etc/httpd/conf- You can type
lsto list the files.
- You can type
- Edit httpd.conf
nano httpd.conf
- Insert a new line with the following:
NameVirtualHost *:443
- Save httpd.conf
- control+O
- Exit nano
- control+X
Step 5 - Edit Joomla config files
- Go to the folder /etc/httpd/conf.d
cd /etc/httpd/conf.d- You can type
lsto list the files.
- You can type
- Edit the joomla config file
nano ****-joomla.conf- (note that the number may change for you)(example: 1006-joomla.conf)
- Add the following text on a new line:
<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/joomla/html
<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>
- Save your web-app.conf
- control+O
- Exit nano
- control+X
step 6 - Restart httpd service
- Restart your httpd service by issuing the following:
service httpd restart
Enjoy



