Author Topic: Change website directory  (Read 5706 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Change website directory
« on: June 22, 2018, 06:08:32 AM »
hi, i have 50 gb ssd as mail directory and 150gb as attachment. My all websites are hosted in the 50gb disk . i want to change directory of few websites to 150gb disk . so i transferred the files and changed apache config virtual host and nginx host file config

files i changed are

nginx host file and ssl file  and apache host file ( changed root directory to- /mnt/data/vajiramandravi.tk)

# Virtual host file starts here

server {
listen 10.8.98.197:80;
access_log /var/log/nginx/access.vajiramandravi.tk.log;
error_log /var/log/nginx/error.vajiramandravi.tk.log;
server_name vajiramandravi.tk www.vajiramandravi.tk;
root /mnt/data/vajiramandravi.tk;

location / {
location ~.*\.(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso|woff|ttf|svg|eot|sh)\$ {
expires 7d; #Comment this out if you are using the apache backend cache-control/expires headers.
try_files \$uri \@backend;
}
error_page 405 = \@backend;
error_page 500 = \@custom;
add_header X-Cache "HIT from Backend";
proxy_pass http://10.8.98.197:82;
include proxy.inc;
}
location \@backend {
internal;
proxy_pass http://10.8.98.197:82;
include proxy.inc;
}
location \@custom {
internal;
proxy_pass http://10.8.98.197:82;
include proxy.inc;
}
location ~ .*\.(php|jsp|cgi|pl|py)?\$ {
proxy_pass http://10.8.98.197:82;
include proxy.inc;
}
location ~ /\.ht {
deny all;
}
}

# Virtual host file ends here

# vhost_start vajiramandravi.tk
<VirtualHost 10.8.98.197:8181>
   ServerName vajiramandravi.tk
   ServerAlias www.vajiramandravi.tk
   ServerAdmin webmaster@vajiramandravi.tk
   DocumentRoot /mnt/data/vajiramandravi.tk
   UseCanonicalName Off
   ScriptAlias /cgi-bin/ /home/orthoboa/public_html/vajiramandravi.tk/cgi-bin/

   # Custom settings are loaded below this line (if any exist)
   # Include "/usr/local/apache/conf/userdata/orthoboa/vajiramandravi.tk/*.conf

   <IfModule mod_userdir.c>
      UserDir disabled
      UserDir enabled orthoboa
   </IfModule>

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

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

   <Directory "/mnt/data/vajiramandravi.tk">
      AllowOverride All
   </Directory>

</VirtualHost>
# vhost_end vajiramandravi.tk

now i am getting an error- Internal Server Error
\\

i have restarted both services after making changes

also fixed permissions

Do i need to do anything else?

What all should be done to change website directory ?

thanks



Offline
*
Re: Change website directory
« Reply #1 on: June 22, 2018, 06:25:21 AM »
the error log is vacant