<?xml version="1.0" encoding="UTF-8" ?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Posteet: virtualhost</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <item>
        <title>Enable SSL in apache2 on Debian Etch</title>
        <link>http://www.posteet.com/view/1037</link>
        <description>
        <![CDATA[<pre># Enable ssl
a2enmod ssl

# Edit /etc/apache2/ports.conf and add &quot;Listen 443&quot;

# Generate certs: use your domain as Common Name or *.domain.tld for multiple domains
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -out /etc/apache2/server.crt -keyout /etc/apache2/server.key

# In the virtualhost, use the following code:
&lt;VirtualHost 192.168.0.1:443&gt;
        SSLEngine On
        SSLCertificateFile /etc/apache2/server.crt
        SSLCertificateKeyFile /etc/apache2/server.key
&lt;/VirtualHost&gt;

# Reload apache2
/etc/init.d/apache2 reload</pre> <a href="http://www.posteet.com/tags/apache2">[apache2]</a>  <a href="http://www.posteet.com/tags/debian">[debian]</a>  <a href="http://www.posteet.com/tags/openssl">[openssl]</a>  <a href="http://www.posteet.com/tags/ssl">[ssl]</a>  <a href="http://www.posteet.com/tags/virtualhost">[virtualhost]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Thu, 03 Jul 2008 19:46:21 +0000</pubDate>

            <category>apache2</category>
            <category>debian</category>
            <category>openssl</category>
            <category>ssl</category>
            <category>virtualhost</category>
    
    </item>

  
    <item>
        <title>Interdire le PHP dans un répertoire avec apache</title>
        <link>http://www.posteet.com/view/1014</link>
        <description>
        <![CDATA[<pre># ajouter la conf suivante dans votre VirtualHost

&lt;Location /upload/&gt;
   AddType text/plain .php .php4 .php5 .phtml .py .pl .cgi .rb
&lt;/Location&gt;</pre> <a href="http://www.posteet.com/tags/apache">[apache]</a>  <a href="http://www.posteet.com/tags/php">[php]</a>  <a href="http://www.posteet.com/tags/security">[security]</a>  <a href="http://www.posteet.com/tags/virtualhost">[virtualhost]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 17 Jun 2008 13:52:30 +0000</pubDate>

            <category>apache</category>
            <category>php</category>
            <category>security</category>
            <category>virtualhost</category>
    
    </item>

  
    <item>
        <title>Force HTTPS, easily</title>
        <link>http://www.posteet.com/view/8</link>
        <description>
        <![CDATA[<pre>&lt;VirtualHost *:80&gt;
  ServerName www.domain.com
  RewriteEngine On
  RewriteRule ^.*$ https://www.domain.com/ [R,L]
&lt;/VirtualHost&gt;

&lt;VirtualHost *:443&gt;
  ServerName www.domain.com
. . .</pre> <a href="http://www.posteet.com/tags/apache">[apache]</a>  <a href="http://www.posteet.com/tags/https">[https]</a>  <a href="http://www.posteet.com/tags/virtualhost">[virtualhost]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Sun, 23 Sep 2007 08:12:36 +0000</pubDate>

            <category>apache</category>
            <category>https</category>
            <category>virtualhost</category>
    
    </item>


</channel>
</rss>
