Jump to content
The Uniform Server Community
jdk

Best way to run site over http and https?

Recommended Posts

Hi,

I am experimenting with Mona 4.1. Currently, I have a number of Joomla sites set up using ViryualHosts on 3.5 to serve public pages over http, but the admin back end over https. It is very easy to set up an entire site to use ssl on Mona, but I am wondering what is the best way to serve part of a directory over ssl, while serving the remainder over http. Any suggestions?

Thanks,

Jeff

Share this post


Link to post
Share on other sites

might be helpfull, thought im no expert concerning ssl.

 

see usr\local\apache2\conf\ssl.conf

 

this looks to me like a template

<Directory "/ssl"> 
 AllowOverride All
 Order allow,deny 
 Allow from all
 SSLRequireSSL
</Directory>

SSLRequireSSL is the directive to activate the SSL part

 

in httpd.conf append that code with your directory defined

Share this post


Link to post
Share on other sites

might be helpfull, thought im no expert concerning ssl.

 

see usr\local\apache2\conf\ssl.conf

 

this looks to me like a template

<Directory "/ssl"> 
 AllowOverride All
 Order allow,deny 
 Allow from all
 SSLRequireSSL
</Directory>

SSLRequireSSL is the directive to activate the SSL part

 

in httpd.conf append that code with your directory defined

Thanks. I understand that ssl.conf must be set up to point to the site for access via ssl, and that httpd.conf must point to the site via port 80.

 

I suppose that I am really asking about directories. Are /ssl and /www simply directories with no special attributes? Further, I am wondering in which directory I should set up the site for public access via http and admin access via https, or does it matter?

Thanks,

Jeff

Share this post


Link to post
Share on other sites

that ssl.conf gets included into the httpd.conf (apache conf), so its apache syntax and apache stuff. not a config for ssl directly, but tells apache how to handle ssl.

 

i would recommend something like this:

 

/apanel -> restricted to localhost:

/ -> open (= /www)

/webshop -> secure, ssl

 

the secrure folder needs a .htaccess with the following line:

SSLRequireSSL

 

as it looks like.

 

or you add the .htaccess file to the www root (/www) or into the apache conf and add the same stuff as the directory"/ssl"... as your directory.

 

the directory "command" takes an existing one and sets options for it.

 

in an htaccess file, not having the directory tags around the stuff, targets the current, where the htaccess file is located at.

 

that would be my best guess.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...