Link to home
Start Free TrialLog in
Avatar of meyerworks
meyerworksFlag for United States of America

asked on

Plesk Subdomain: what is the directory structure ?Where do the html files need to be placed?

My problem is very similar to the one presented by HenryWilfredd.
The answers submitted do not tell me where my html  files should go.
when i try my subdomain i see the same message as indicated below.
Are DNS records need, if so can an example be provided?
Are manual changes to http.conf need?




Comment from HenryWilfred
Date: 03/03/2005 06:50AM PST
 Author Comment  


I am not asking the question very well. Sorry. I have built websites. I have never used subdomains before and am unable to get past a startup problem

I have created subdomains using Plesk. When I create a subdomain, Plesk build the subdomain as a copy of the parent domain. If I go out to look at it at sub.domain.com I get a message that says:
-----------------------------------------------------------------
 "You may now add content to the directory /var/www/html/. Note that until you do so, people visiting your website will see this page, and not your content. To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.

You are free to use the images below on an Apache and Red Hat powered HTTP server. Thanks for using Apache and Red Hat Enterprise Linux!"
----------------------------------------------------------------------
The file referenced .../etc/httpd/conf.d/welcome.conf.... is NOT in that location so I am unable to get past this APACHE startup message. I have copied an updated httpdocs to the new subdomain but the apache startup message continues.

How do I get started with rthis subdomain?
 
Avatar of Frank Tsao
Frank Tsao

What version of Plesk are you using?

To upload files to the main domain, what folder are you currently uploading to (e.g. /httpdocs)?
I'm using Plesk 7.5.4 and when I create a subdomain the web files go in (assuming you selected the option to use the same FTP login) "/subdomains/SUBDOMAIN_NAME/httpdocs"
Avatar of meyerworks

ASKER

I think that I need to modify the http.conf file
i believe that the follwing is the path to where my subdomain files should go


/var/www/vhosts/ourdomainname.com/httpdocs/mysubdomain/

I've noticed that plesk's subdomain creator added an A record to our DNS structure for the subdomain

does this look like what i should add to my http.conf file?:

<VirtualHost *>
  ServerName www.ourdomain.com
  DocumentRoot /var/www/vhosts/ourdomainname.com/httpdocs/
</VirtualHost>

<VirtualHost *>
  ServerName engineering.gkmachine.com
  DocumentRoot /var/www/vhosts/ourdomainname.com/httpdocs/mysubdomain/
</VirtualHost>
You shouldn't have to make any changes to your httpd.conf file.

What version of Plesk are you using?  Depending on your version, you may have different options.

In the create a subdomain page did you see an option for FTP user to either:

- Use the FTP user account of the main domain
- Create a separate FTP user account for this subdomain?
Plesk 8
Ftp user, yes i created  a user for this site, actually used this domain as an FTP transfer point once
Ok, when you log in using that new FTP user account do you see a list of folders?
httpdocs
httpsdocs
cgi-bin
conf
error_docs
ASKER CERTIFIED SOLUTION
Avatar of Frank Tsao
Frank Tsao

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ok, i placed a simple default.htm in the ftp location for httpdocs

http://mysubdomain.mydomain.com gives me the generic VPS apache test page.

http://mysubdomain.mydomain.com/default.htm  works like i hoped the previous line would have worked

how do i set default.htm as the default for this subdomain
Easiest way is to just rename the file to index.html (or index.htm).

Or if you really want to use default.htm as the default document you could edit httpd.conf and add "default.htm" to the list of files under DirectoryIndex.