HTTPS (secured)

Discussion in 'Site & Server Administration' started by D_C, Apr 16, 2006.

  1. #1
    How do you make a page secured, and what exactly does secureing it do? Does it make it kinda one-way, so that the only way to enter it would be through a certain place? I'm trying to make a website and to secure it properly, and i have no idea on how to do this. Anyone helping me would be great!

    Thanks,

    ~D_C
     
    D_C, Apr 16, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    kk5st, Apr 16, 2006 IP
  3. sacx13

    sacx13 Active Member

    Messages:
    438
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Just configure in your apache a ssl connection (is like a normal conf). Anyway you need to have the certificate already generated for that.

    Anyway I will show you a little trick to forward your unsecure connection on secured one:

    On your non secured connection define in this way:
    <VirtualHost *:80>
    ServerName server.domain.tld
    ErrorLog /var/log/apache2/server.domain.tld-error.log
    CustomLog /var/log/apache2/server.domain.tld-access.log common
    DocumentRoot /var/www/xxx
    <Directory /var/www/xxx>
    AllowOverride All
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule (.*) https://%{SERVER_NAME}$1 [L,R] <--change for your needs
    </Directory>

    </VirtualHost>

    And on secured conection just define your ssl connection:

    <VirtualHost *:443>
    ServerAdmin
    DocumentRoot /var/www/xxx
    ServerName server.domain.tld

    ErrorLog /var/log/apache2/server.domain.tld-error.log
    CustomLog /var/log/apache2/server.domain.tld-access.log common

    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/apache.pem

    SSLProtocol all
    SSLCipherSuite HIGH:MEDIUM
    </VirtualHost>


    Regards
    Adrian
     
    sacx13, Apr 17, 2006 IP
  4. D_C

    D_C Well-Known Member

    Messages:
    1,107
    Likes Received:
    21
    Best Answers:
    1
    Trophy Points:
    160
    #4
    Thats alot Adrian, that made alot more sence than i thought it would ^-^
     
    D_C, Apr 19, 2006 IP