Control Web Panel

WebPanel => Apache => Topic started by: quachat on April 06, 2015, 12:51:05 PM

Title: How to change file location to /home/USERNAME/public_html/
Post by: quachat on April 06, 2015, 12:51:05 PM
Hi,

I search on this forum and google , but it's not help me to fix this issue. Please help me.

How to change file location of website to : /home/USERNAME/public_html/

my website is only show index.html in location : /usr/local/apache/htdocs/ with index.html file

Contents of File: /usr/local/apache/conf.d/vhosts.conf
# vhost_start mywebsite.com
<VirtualHost 128.199.xxx.xxx:82>
ServerName mywebsite.com
ServerAlias www.mywebsite.com
ServerAdmin maxiinvest@gmail.com
DocumentRoot "/home/USERNAME/public_html"
ScriptAlias /cgi-bin/ "/home/USERNAME/public_html/cgi-bin/
#
# Custom settings are loaded below this line (if any exist)
# Include "/usr/local/apache/conf/userdata/USERNAME/mywebsite.com/*.conf

<IfModule mod_suexec.c>
        SuexecUserGroup USERNAME USERNAME
</IfModule>

<IfModule mod_suphp.c>
        suPHP_UserGroup USERNAME USERNAME
        suPHP_ConfigPath /home/USERNAME
</IfModule>

<Directory "/home/USERNAME/public_html">
        AllowOverride All
</Directory>

</VirtualHost>
# vhost_end mywebsite.com
Title: Re: How to change file location to /home/USERNAME/public_html/
Post by: brijendrasial on April 06, 2015, 01:38:59 PM
Multiple topic for same issue?

http://forum.centos-webpanel.com/apache/website-didn%27t-get-correct-location/
Title: Re: How to change file location to /home/USERNAME/public_html/
Post by: quachat on April 06, 2015, 02:57:54 PM
Many thanks. It's work now.