Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Home folders are duplicating in /var/www

  1. #1
    Join Date
    Dec 2008
    Location
    South Africa
    Beans
    93
    Distro
    Ubuntu 10.04 Lucid Lynx

    Home folders are duplicating in /var/www

    I have setup postfix to deliver mail to Maildir/ and my apache site directory to /home/user/public_html. It works fine only recently I have noticed that every folder and file in /home/ is being duplicated in /var/www/
    How can I stop this duplicating?

    Another thing is that when I setup transparency proxy, I cannot access any remote servers via vpn or webmin. Is there a way to correct this or its just one of the disadvantages of transparent proxy?

    Your help will be greately appreciated.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Home folders are duplicating in /var/www

    What method are you using to see that these folders are visible in /var/www? Your web browser?

  3. #3
    Join Date
    Dec 2008
    Location
    South Africa
    Beans
    93
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Home folders are duplicating in /var/www

    Using either ssh(putty) or webmin file manager or the command console itself. By the way, my box is running ubuntu server 8.04
    Last edited by dalitso; November 9th, 2009 at 01:12 PM.

  4. #4
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    UserDir

    If you look at www inside of /var or /var/www, do you see symlinks?

    lrwxr-xr-x 1 root wheel 10 Nov 8 21:55 home -> /var/www/

    lrwxr-xr-x 1 root wheel 10 Nov 8 21:55 /var/www -> /home

    Do you have user directories turned on in apache? That would allow you to access some part of the user home directory via the web:


    What would be shown by the URL above for ~dalitso would be dependent on how UserDir was set in your Apache virtual host.


  5. #5
    Join Date
    Dec 2008
    Location
    South Africa
    Beans
    93
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Home folders are duplicating in /var/www

    Apache userDir is disabled by default. And there are no symlinks between /var/www and /home

  6. #6
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    ServerRoot

    Yes, default it is disabled. But what is the current setting on your machines web server configuratoin? How about the settings for ServerRoot and DocumentRoot?

    Also please explain in more detail how you can see that the folders are duplicating in /var/www?

  7. #7
    Join Date
    Dec 2008
    Location
    South Africa
    Beans
    93
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Home folders are duplicating in /var/www

    Apache userdir is disabled. I have a number of virtual hosts heres their document roots

    ServerRoot "/etc/apache2"

    DocumentRoot /home/martin/public_html

    DocumentRoot /home/dalitso/public_html

    DocumentRoot /usr/share/squirrelmail


    I have attached webmin file manager screen shots; that's one of the ways I can tell that the folders are duplicating.

    Here is also the output from the terminal


    Code:
    root@wani:/home# ls -l
    total 36
    -rw------- 1 root                           root                              0 2009-09-07 20:36 aquota.user
    drwxr-xr-x 4 dalitso                        users                          4096 2009-11-05 12:43 dalitso
    drwxr-xr-x 3 demster                        users                          4096 2009-11-10 18:45 demster
    drwxrwxrwx 3 ftp                            nogroup                        4096 2009-10-27 20:58 ftp
    -rw-r--r-- 1 root                           root                             45 2009-09-07 18:37 index.html
    drwxr-xr-x 9 martin                         martin                         4096 2009-11-10 18:45 martin
    drwxr-xr-x 4 ngonie                         users                          4096 2009-11-10 18:45 ngonie
    drwxr-xr-x 2 squid                          squid                          4096 2009-10-30 11:21 squid
    drwxr-xr-x 2 root                           root                           4096 2009-11-02 06:45 webalizer
    drwxr-xr-x 6 webmail-martinology.selfip.org webmail-martinology.selfip.org 4096 2009-11-07 23:41 webmail-martinology.selfip.org
    
    
    
    root@wani:/var/www# ls -l
    total 36
    -rw------- 1 root                           root                              0 2009-09-07 20:36 aquota.user
    drwxr-xr-x 4 dalitso                        users                          4096 2009-11-05 12:43 dalitso
    drwxr-xr-x 3 demster                        users                          4096 2009-11-10 18:45 demster
    drwxrwxrwx 3 ftp                            nogroup                        4096 2009-10-27 20:58 ftp
    -rw-r--r-- 1 root                           root                             45 2009-09-07 18:37 index.html
    drwxr-xr-x 9 martin                         martin                         4096 2009-11-10 18:45 martin
    drwxr-xr-x 4 ngonie                         users                          4096 2009-11-10 18:45 ngonie
    drwxr-xr-x 2 squid                          squid                          4096 2009-10-30 11:21 squid
    drwxr-xr-x 2 root                           root                           4096 2009-11-02 06:45 webalizer
    drwxr-xr-x 6 webmail-martinology.selfip.org webmail-martinology.selfip.org 4096 2009-11-07 23:41 webmail-martinology.selfip.org
    Attached Images Attached Images
    Last edited by dalitso; November 10th, 2009 at 06:16 PM.

  8. #8
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Home folders are duplicating in /var/www

    From the ls output above it seems that /var/www/ is a symlink to /home/

    Can you post the output of
    Code:
    ls -l /var
    please?

  9. #9
    Join Date
    Dec 2008
    Location
    South Africa
    Beans
    93
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Home folders are duplicating in /var/www

    Here's the output of ls -l /var

    HTML Code:
    root@wani:~# ls -l /var
    total 48
    drwxr-xr-x  2 root root  4096 2009-10-25 06:26 backups
    drwxr-xr-x 14 root root  4096 2009-10-12 15:47 cache
    drwxr-xr-x 45 root root  4096 2009-10-12 16:00 lib
    drwxrwsr-x  2 root staff 4096 2008-06-13 22:40 local
    drwxrwxrwt  3 root root    60 2009-11-10 15:32 lock
    drwxr-xr-x 15 root root  4096 2009-11-10 15:32 log
    drwxrwsr-x  2 root mail  4096 2009-09-07 22:11 mail
    drwxr-xr-x  2 root root  4096 2009-09-07 18:14 opt
    drwxr-xr-x 19 root root   640 2009-11-10 15:32 run
    drwxr-xr-x  8 root root  4096 2009-09-24 20:18 spool
    drwxrwxrwt  2 root root  4096 2008-06-13 22:40 tmp
    drwxrwxrwt  2 root root  4096 2009-09-07 21:07 virtualmin-autoreply
    drwx------  2 root bin   4096 2009-10-31 21:49 webmin
    drwxr-xr-x 10 root root  4096 2009-11-07 23:41 www

  10. #10
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Home folders are duplicating in /var/www

    OK so /var/www isn't a symlink of /home. Is /home a symlink of /var/www?

    Or are there any jobs in cron that are synchronising the two directories? (You can see all of these at once in webmin)

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •