LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Symlinking directories

Reply
 
Thread Tools Display Modes
  #11  
Old 09-11-2011, 07:31 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Quote:
Originally Posted by NiteWave View Post
full URL is ok, if you think ok to paste here.
or just replace the domain name as domain.com etc.
http://bananatree.im/sdb/redirect/ca...9c6fc2a09b.dua



EDIT: The owner of that file is "root", not "banana" or "nobody", I'm assuming that's the issue?
Reply With Quote
  #12  
Old 09-11-2011, 07:37 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
maybe. the file's permission ?
#ls -ald /home/bananatree/html/redirect/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
#ls -ald /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
Reply With Quote
  #13  
Old 09-11-2011, 07:45 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Woah wait, those are two different files. Now it's like it's not symlinking them, did I not symlink it correctly?
Reply With Quote
  #14  
Old 09-11-2011, 07:54 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
maybe you can create a directory link only, not many file links
instead of:
Code:
ln -s /home/banana/srcds/orangebox/garrysmod/cache/*.dua /home/bananatree/html/sdb/redirect/cache/
just do:
#rm -rf /home/bananatree/html/sdb/redirect/cache/
#ln -s /home/banana/srcds/orangebox/garrysmod/cache/ /home/bananatree/html/sdb/redirect/cache/
Reply With Quote
  #15  
Old 09-11-2011, 07:59 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Quote:
Originally Posted by NiteWave View Post
maybe you can create a directory link only, not many file links
instead of:
Code:
ln -s /home/banana/srcds/orangebox/garrysmod/cache/*.dua /home/bananatree/html/sdb/redirect/cache/
just do:
#rm -rf /home/bananatree/html/sdb/redirect/cache/
#ln -s /home/banana/srcds/orangebox/garrysmod/cache/ /home/bananatree/html/sdb/redirect/cache/
Code:
root@us:/home/banana/srcds/orangebox# ln -s /home/banana/srcds/orangebox/garrysmod/cache/* /home/bananatree/html/sdb/redirect/cache/
root@us:/home/banana/srcds/orangebox# ls /home/bananatree/html/sdb/redirect/cache/       5e8b4e1f2c4da62fa2af9e962201d93f.dua  c231c1542ebf0f1dd9ece322be324cad.dua
6afa5cc7a1de5a0df435669c6fc2a09b.dua
http://bananatree.im/sdb/redirect/ca...9c6fc2a09b.dua

still a 404

EDIT:

Code:
root@us:/home/banana/srcds/orangebox# ls -ald /home/bananatree/html/sdb/redirect/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
lrwxrwxrwx 1 root root 81 Sep 11 22:58 /home/bananatree/html/sdb/redirect/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua -> /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua

Last edited by Banana Lord.; 09-11-2011 at 08:01 PM..
Reply With Quote
  #16  
Old 09-11-2011, 08:12 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
#ls -ald /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
?
Reply With Quote
  #17  
Old 09-11-2011, 08:18 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Code:
root@us:/home/banana/srcds/orangebox# ls -ald /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
-rw-r--r-- 1 banana banana 222190 Sep 11 22:58 /home/banana/srcds/orangebox/garrysmod/cache/6afa5cc7a1de5a0df435669c6fc2a09b.dua
Reply With Quote
  #18  
Old 09-11-2011, 08:21 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
please put a file into redirect/cache and see if still 404.
$touch /home/bananatree/html/sdb/redirect/cache/abc
and check:
http://bananatree.im/sdb/redirect/cache/abc
Reply With Quote
  #19  
Old 09-11-2011, 08:22 PM
Banana Lord. Banana Lord. is offline
Member
 
Join Date: Mar 2011
Posts: 43
Quote:
Originally Posted by NiteWave View Post
please put a file into redirect/cache and see if still 404.
$touch /home/bananatree/html/sdb/redirect/cache/abc
and check:
http://bananatree.im/sdb/redirect/cache/abc
that works

so do the other 2 caches that i'm using on a heavy traffic gameserver, it's just the symlinked ones. should I sudo -u banana the symlink? will that make the owners match?
Reply With Quote
  #20  
Old 09-11-2011, 08:27 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,216
please try it
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:47 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.