[HLUG] Suse's version of httpd.conf

Mark Broadbent m.broadbent at signal.QinetiQ.com
Mon Sep 12 13:59:57 BST 2005


Andrew Hodgson wrote:

>Hi,
>
>I know about the benefits of fragmented files, its just that I don't do much
>configuring of Apache, and when I did it two years ago, it was on a flat
>file.
>
>I think I can now do this using the virtual hosts files, I just needed the
>site to be accessible whatever the user typed into the address bar - they
>could put one of two host names in, or an IP address, and I needed it to go
>to port 443 (I can deal with the redirection in the web app).
>  
>
You could (more simply) have a the VirtualHost directive with a Redirect 
statement to deal with the redirection, like so:

<VirtualHost ...:443>
    ...

    RedirectMatch (.*) https://therealplace.com$1
</VirtualHost>

Thanks
Mark

>Thanks.
>Andrew.
>
>-----Original Message-----
>From: herefordshire-bounces at mailman.lug.org.uk
>[mailto:herefordshire-bounces at mailman.lug.org.uk] On Behalf Of Mark
>Broadbent
>Sent: 12 September 2005 13:37
>To: Herefordshire Linux Users Group.
>Subject: Re: [HLUG] Suse's version of httpd.conf
>
>Andrew Hodgson wrote:
>
>  
>
>>Hi all,
>>
>>On SLES9, I am trying to allow HTTPS requests to go to the default website.
>>I can see where the SSL settings are, but I am not sure which template is
>>used for configuring SSL in the default website?
>>
>>Any pointers?  
>>
>>I would usually put an SSL statement near the top, where it would say the
>>root document etc, and thn there are SSL statements lower down the file
>>which configure the certificates etc.  However this file is highly
>>fragmented with several include statements, and I am not sure what the best
>>practice is.
>>
>>Any suggestions?
>> 
>>
>>    
>>
>
>Hi Andrew,
>
>Personally, I would add another file that configures the SSL enabled 
>site using a VirtualHost directive.  Something along the lines of:
>
>Port *:443
>
><VirtualHost myhost.com:443>
>    SSLEnable On
>    DocumentRoot /var/www/mysecuresite
>    ...
></VirtualHost>
>
>That is all from memory so the names might not be correct.
>
>BTW, the fragmented configuration eases configuration of apache 
>enormously as each seperate virtual hosted site can be in a seperate 
>file.  Much easier to manage! :-)
>
>Thanks
>Mark
>  
>




More information about the Herefordshire mailing list