This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteRule ^(.*)$ https://example.com$1 [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a bottom-up guide on installing openDCIM on a CentOS server. | |
This guide is released in the '''Public Domain''', except from the section "''Enable HTTPS''" which is a snippet from [http://wiki.centos.org/HowTos/Https CentOS Wiki] and is licenced under [http://creativecommons.org/licenses/by-sa/3.0/ Creative Commons Attribution-Share Alike 3.0 Unported License]. | |
=== Software Used === | |
This guide has been tested with: | |
* openDCIM version 2.1, the current version as of the writing of the guide, but it should apply to previous versions, and possibly to future ones as well. | |
* CentOS 6.4 Minimal 64bit, with the latest updates as of 2013-05-25, but it should apply to previous versions, and possibly to future ones as well. | |
* The <code>vim</code> editor is used in the commands below, because it adds nice colored syntax highlighting when editing configuration files. If you don't have <code>vim</code>, you can use <code>vi</code>, which comes preinstalled with CentOS. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin marios@example.com | |
ServerName example.com | |
DocumentRoot /var/www/example.com | |
# Aliases (most deeply nested URL should come first): | |
Alias /test/web-py/blog /var/www/example.com/test/web-py/blog/index.py/ | |
Alias /test/web-py/books /var/www/example.com/test/web-py/books/index.py/ | |
Alias /test/web-py/wiki /var/www/example.com/test/web-py/wiki/index.py/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Continue with configuration dialog? [yes/no]: no | |
Press RETURN to get started! | |
Router>enable | |
Router#configure terminal | |
Enter configuration commands, one per line. End with CNTL/Z. | |
Router(config)#interface fa 0/1 | |
Router(config-if)#ip address 192.168.1.1 255.255.255.0 | |
Router(config-if)#no shutdown |