Author Topic: How to change file location to /home/USERNAME/public_html/  (Read 8553 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to change file location to /home/USERNAME/public_html/
« 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


Offline
*
Re: How to change file location to /home/USERNAME/public_html/
« Reply #2 on: April 06, 2015, 02:57:54 PM »
Many thanks. It's work now.