Web Hosting Talk







View Full Version : [PLESK] Various questions from a n00b


vfouquereau
12-16-2004, 06:25 PM
Hi all,

I have a problem. Well, some problems.

1- How do I create a subdomain on my site that will point to a directory on my site? :P In Plesk, all I have to give for information is the name of the subdomain and... well... that's it! I thought subdomains were like : admin.mydomain.com -> mydomain.com/admin/ ... Is that it? Is there something missing in my Plesk Panel?

2- How do I create LOCKED directories in Plesk? I created a "SSL" and "NON-SSL" protection on a folder on my site but it's never protected! i.e : mydomain.com/secure/ ... I create a protected entry pointing on "/httpdocs/secure/ " but it never asks me to log using the user I provided...

Thanks for any help.

Dan L
12-16-2004, 10:39 PM
1: Plesk has two ways to use subdomains.. you can either create a subdomain as a domain, where it is treated like a domain, or have it as a plain subdomain, where it is in a subdomains/ folder parallel to httpdocs and the like.

2: If all you want is SSL, you would use httpdocs/ and httpsdoc/ respectively.

vfouquereau
12-16-2004, 10:48 PM
Okay, I got the locking work! Well... It worked alone! I just had to wait.

For the subdomain thing, I just want to make it work like it works anywhere else!!!

You know, like when there is a site that do "my.thesite.com" like deviant art...

Dan L
12-16-2004, 11:08 PM
DeviantArt uses something like mod_rewrite, as far as I know (no control panels to interfere). Basically the subdomain name is passed to a script, and the script queries a mysql database.

vfouquereau
12-16-2004, 11:11 PM
I found my subdomain folders on my FTP. Okay, there is a directory called what I typed when I created my subdomain in this folder. The problem is EVEN if I upload stuff in these folders, the server does not recognoze them! I uploaded an index.html in each subdomain I created and none of them work either.

Man, this is frustrating.

Cephren
12-17-2004, 09:17 AM
You might want to restart httpd. Sometimes this happens, when you create a new subdomain, the httpd doesnt reload in plesk.
Happened to couple of our Plesk servers.... where we create the subdomain, we see the new folder created inside /domain.com/subdomains/newsite/httpdocs
but it doesnt appear. (also make sure the DNS is correct)


/etc/init.d/httpd reload
or
/etc/init.d/httpd restart

vfouquereau
12-17-2004, 01:57 PM
Well, my host updated the DNS of those subdomains and it works now.

Now, how can I protect that subdomain with a password? I can protect a folder in my main domain but how to protect the like of "admin.mydomain.com" ?

Dan L
12-17-2004, 05:54 PM
Use .htaccess. (Google it.)