• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Chaning File Path for Domain

J

JonathanY

Guest
Hello guys,

I added a domain to my plesk panel, and it says it is located at /httpdocs

but after setting up the namservers and everything, the actual files it displays on my site is located at

/var/www instead of var/www/vhosts/domain.com/httpdocs

How can I fix this?
 
What sort of output

# grep HTTPD_VHOSTS_D /etc/psa/psa.conf

?
 
but after setting up the namservers and everything, the actual files it displays on my site is located at

The website files you see in the browser, are they the website files you uploaded or just some default parking page ..?
 
They are the pages I uploaded. I originally uploaded it to the var/www/vhosts/domain/httpdocs folder but they were not displayed, after I moved them to the /www/ folder they can be seen.
 
OK, that is interesting ...Had you already rebuilt the vhost configurations ? If not please do so right away with /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

if that fails to resolve your problem, I would love to take alook at your server configurations, you can PM me.
 
What do you mean by rebuilding my vhosts config? How can I do so?
 
To rebuild the vhosts, you run the command from SHELL:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
Back
Top