These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Where should I put files in order the website works in my VHost server? on the new forum.
Hi,
I'm a newbie in Virtualmin. Currently I am transferring Standalone server to VHost Server.
When I transferred a file from S3 to VHost I found that, this file have two directories
1) mnt/apache-htdocs/ 2) mnt/apache-tomcat-6.0.24
Where should I put these both files in order the website works in my VHost server?
I am using Virtualmin Pro.
When I created new virtual server it creates /home/mydomainname
Should I put there?
your files (website) needs a public folder something like public_html or www or htdocs
Virtualmin uses /home/mydomainname/public_html
Yes. when I created mydomainname. It created me /home/mydoimainname/public_html
Is it right if I put apache-htdocs and apache-tomcat-6.0.24 in /home/mydomainname/public_html?
Just now I copy all the files in apache-htdocs folder and put it in public_html.
But I gotForbidden
You don't have permission to access / on this server.My previous server need to have both apache-htdocs and apache-tomcat-6.0.24 in order to work.
Im confused..
Is it right if I put apache-htdocs and apache-tomcat-6.0.24 in /home/mydomainname/public_html?
no. the site/files that were inside apache-htdocs should now be inside /public_html
make sure the user owns the files and there is an index.php or index.html inside public_html
your previous server used the path /apache-htdocs to serve webpages. Your new server uses the path /public_html
so instead /apache-htdocs/index.php you now want /public_html/index.php
apache-tomcat is used when you use the tomcat server which is for java files... for instance scripts like Alfresco and Red mediaserver use java
Thanks Ronald. Its working great now. You're awesome. Thanks man. :-)