Help - Search - Members - Calendar
Full Version: SSL at the same directory
The Planet Forums > Control Panels > Plesk
nickmm
Hi,

Anyone know if SSL in Plesk can be configurate in the same directoy ( httpdocs ).

I think, that i can edit /usr/local/psa/apache/conf/httpd.include and modify this line:

DocumentRoot /usr/local/psa/home/vhosts/domain.com/httpsdocs

For this one:

DocumentRoot /usr/local/psa/home/vhosts/domain.com/httpdocs


Anyone try it? Its posible?

Thanks a lot.
NightHawk
QUOTE
Originally posted by nickmm
Hi,

Anyone know if SSL in Plesk can be configurate in the same directoy ( httpdocs ).

I think, that i can edit /usr/local/psa/apache/conf/httpd.include and modify this line:

DocumentRoot /usr/local/psa/home/vhosts/domain.com/httpsdocs

For this one:

DocumentRoot /usr/local/psa/home/vhosts/domain.com/httpdocs


Anyone try it? Its posible?

Thanks a lot.



while that may be possible...I would not suggest it. Plesk will overwrite your changes in httpd.include, next time a domian is modified or added.

You could possibly get by with using a mod_rewrite rule in your vhost.conf for that domain.
Danimal
I've found the easiest thing is to make one a symbolic link to the other.

For example, since httpdocs already exists and has webstat and possibly other directories, just make httpsdocs be a symlink to httpdocs:

> cd /usr/local/psa/home/vhosts/cimshotels.com/
> ln -s httpdocs httpsdocs

(httpsdocs must not exist previously... if it does, delete it first).

Now, httpdocs and httpsdocs both point to the same place, so you don't have two copies of everything.

Then, just enable SSL in Plesk and it'll put the appropriate stuff in the httpd.include file for apache.

There you go!

-Danimal cool.gif
NightHawk
QUOTE
Originally posted by Danimal
I've found the easiest thing is to make one a symbolic link to the other.

For example, since httpdocs already exists and has webstat and possibly other directories, just make httpsdocs be a symlink to httpdocs:

> cd /usr/local/psa/home/vhosts/cimshotels.com/
> ln -s httpdocs httpsdocs

(httpsdocs must not exist previously... if it does, delete it first).

Now, httpdocs and httpsdocs both point to the same place, so you don't have two copies of everything.

Then, just enable SSL in Plesk and it'll put the appropriate stuff in the httpd.include file for apache.

There you go!

[B]-Danimal
cool.gif [/B]


ouch....I would never recommend that idea....
nickmm
Why?

I think its possible.

?????

Thanks a lot NightHawk and Danimal
Rich2k
It's certainly possible but firstly it could cause security issues. Additionally password protection in directories controlled through plesk will ceast to work on the https:// version.

E.g. if you set password protection for http://domain.com/directory you will be able to bypass it by using https://domain.com/directory

It's not so terrible because it's under the same jailed root you won't be able to bypass suexec or php's security but it's still a bit messy (for want of a better word).

I find symlinks are probably the best way to preview name based hosting sites before the domain has propogated as all of the other methods are rediculously complicated.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.