View Full Version : shortcuts in var/www pointing to wrong directory
I reloaded a few websites, but now when I go into the var/www, the domain directory shortcuts are pointing to the old site. like one is web1 when it is now web5. How do I redirect these to the correct directory? Thank you for having this site.
New info- I went into var/www with winSCP and clicked on the shortcut of the dir that Is in question. It took me to the var/www/web1 dir. but that is the old dir that I do not have any more. There are no files in it. The same with the other sites shortcut. It is pointing to the old dir.
You can change the symlinks like this:
ln -sf /var/www/web1 /var/www/www.example.comwhere /var/www/www.example.com is a symlink and /var/www/web1 is the new target directory.
I ran the commands and changes to match my files. I still get errors. I use winSCP to enter the server. when I get to var/www/ I can see the 3 webistes domain names. when I dubble click on the site I get No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 11 It is looking for web1. There is no web 1 any more. But when I right click the domain shortcut and go to property, it tells me that the group is web19 and the and the owner is www-data. these are both correct.
Why is it not fixing the redirect after I run the commands you gave me ? Is this a big deal in the the running of the websites? because I am having trubble when people try to register, they are getting a 404 error page comes up.
falko
10th May 2008, 18:11
What's the output of
ls -la /var/www/?
I just ran. ln -sf /var/www/www.apostolichearts.com /var/www/web26 and it fixed it
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.