Difference between revisions of "Access Joomla over HTTPS"
From Amahi Wiki
Line 7: | Line 7: | ||
* Forward port 443 to your HDA IP address (example: 192.168.2.10) | * Forward port 443 to your HDA IP address (example: 192.168.2.10) | ||
− | |||
Line 14: | Line 13: | ||
* Go to the folder etc/httpd/conf | * Go to the folder etc/httpd/conf | ||
− | |||
** <code>cd etc/httpd/conf</code> | ** <code>cd etc/httpd/conf</code> | ||
− | |||
*** You can type <code>ls</code> to list the files. | *** You can type <code>ls</code> to list the files. | ||
* Edit httpd.conf | * Edit httpd.conf | ||
− | |||
** <code>nano httpd.conf</code> | ** <code>nano httpd.conf</code> | ||
* Insert a new line with the following: | * Insert a new line with the following: | ||
− | |||
** <code>NameVirtualHost *:443</code> | ** <code>NameVirtualHost *:443</code> | ||
* Save httpd.conf | * Save httpd.conf | ||
− | |||
** control+O | ** control+O | ||
* Exit nano | * Exit nano | ||
− | |||
** control+X | ** control+X | ||
− | |||
Line 41: | Line 33: | ||
* Go to the folder etc/httpd/conf.d | * Go to the folder etc/httpd/conf.d | ||
− | |||
** <code>cd etc/httpd/conf.d</code> | ** <code>cd etc/httpd/conf.d</code> | ||
− | |||
*** You can type <code>ls</code> to list the files. | *** You can type <code>ls</code> to list the files. | ||
* Edit the joomla config file | * Edit the joomla config file | ||
− | |||
** <code>nano ****-joomla.conf</code> | ** <code>nano ****-joomla.conf</code> | ||
− | |||
*** ''(note that the number may change for you)(example: 1006-joomla.conf)'' | *** ''(note that the number may change for you)(example: 1006-joomla.conf)'' | ||
* Add the following text on a new line: | * Add the following text on a new line: | ||
− | |||
− | |||
** <code><VirtualHost *:443> | ** <code><VirtualHost *:443> | ||
Line 78: | Line 64: | ||
* Save your web-app.conf | * Save your web-app.conf | ||
− | |||
** control+O | ** control+O | ||
* Exit nano | * Exit nano | ||
− | |||
** control+X | ** control+X | ||
Line 88: | Line 72: | ||
[[image:1006-joomlaconf.jpg]] | [[image:1006-joomlaconf.jpg]] | ||
− | |||
Line 95: | Line 78: | ||
* Restart your httpd service by issuing the following: | * Restart your httpd service by issuing the following: | ||
− | |||
** <code>service httpd restart</code> | ** <code>service httpd restart</code> | ||
Revision as of 17:04, 3 July 2009
Acces your Joomla site over Https (HyperText Transfer Protocol Secure)
Contents
Step 1 - Setting up port forwarding
- Forward port 443 to your HDA IP address (example: 192.168.2.10)
Step 2 - Edit httpd config files
- Go to the folder etc/httpd/conf
cd etc/httpd/conf
- You can type
ls
to 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 3 - Edit Joomla config files
- Go to the folder etc/httpd/conf.d
cd etc/httpd/conf.d
- You can type
ls
to 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/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 your web-app.conf
- control+O
- Exit nano
- control+X
step 4 - Restart httpd service
- Restart your httpd service by issuing the following:
service httpd restart
Enjoy