Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. $ mkdir test
  2. $ chmod 777 test
  3. //test is now in /home/Dropbox/test/
  4. //I put an index.html with 777 perms in it.
  5. $ cd /opt/lampp/htdocs/
  6. $ sudo ln -s /home/Dropbox/test/ /opt/lampp/htdocs/$USER
  7. //my user appears as symlink directory in htdocs.
  8. $ /opt/lampp/lampp stop
  9. $ /opt/lampp/lampp start
  10. //lampp is now restarted
  11.  
  12. <Directory />
  13. Options FollowSymLinks
  14. AllowOverride None
  15. #XAMPP
  16. #Order deny,allow
  17. #Deny from all
  18. </Directory>
  19.  
  20. <Directory "/opt/lampp/htdocs/">
  21. #
  22. # Possible values for the Options directive are "None", "All",
  23. # or any combination of:
  24. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  25. #
  26. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  27. # doesn't give it to you.
  28. #
  29. # The Options directive is both complicated and important. Please see
  30. # http://httpd.apache.org/docs/2.2/mod/core.html#options
  31. # for more information.
  32. #
  33. #Options Indexes FollowSymLinks
  34. # XAMPP
  35. Options Indexes FollowSymLinks ExecCGI Includes
  36.  
  37.  
  38. #
  39. # AllowOverride controls what directives may be placed in .htaccess files.
  40. # It can be "All", "None", or any combination of the keywords:
  41. # Options FileInfo AuthConfig Limit
  42. #
  43. #AllowOverride None
  44. # since XAMPP 1.4:
  45. AllowOverride All
  46.  
  47.  
  48. #
  49. # Controls who can get stuff from this server.
  50. #
  51. Order allow,deny
  52. Allow from all
  53.  
  54. </Directory>
  55.  
  56. $ tail -f error_log
  57. [Fri Dec 23 13:55:50 2011] [error] [client 127.0.0.1] Symbolic link not allowed or link target not accessible: /opt/lampp/htdocs/*myusername*
  58. [Fri Dec 23 13:56:02 2011] [notice] caught SIGTERM, shutting down
  59. [Fri Dec 23 13:56:08 2011] [notice] suEXEC mechanism enabled (wrapper: /opt/lampp/bin/suexec)
  60. [Fri Dec 23 13:56:08 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
  61. [Fri Dec 23 13:56:08 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
  62. [Fri Dec 23 13:56:08 2011] [notice] Digest: generating secret for digest authentication ...
  63. [Fri Dec 23 13:56:08 2011] [notice] Digest: done
  64. [Fri Dec 23 13:56:09 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
  65. [Fri Dec 23 13:56:09 2011] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
  66. [Fri Dec 23 13:56:09 2011] [notice] Apache/2.2.21 (Unix) DAV/2 mod_ssl/2.2.21 OpenSSL/1.0.0c PHP/5.3.8 mod_apreq2-20090110/2.7.1 mod_perl/2.0.5 Perl/v5.10.1 configured -- resuming normal operations
  67.  
  68. $ tail -f access_log
  69. 127.0.0.1 - - [23/Dec/2011:13:41:27 -0500] "GET /work HTTP/1.1" 403 1111
  70. 127.0.0.1 - - [23/Dec/2011:13:41:27 -0500] "GET /work HTTP/1.1" 403 1111
  71. 127.0.0.1 - - [23/Dec/2011:13:41:28 -0500] "GET /work HTTP/1.1" 403 1111
  72. 127.0.0.1 - - [23/Dec/2011:13:55:47 -0500] "GET / HTTP/1.1" 302 -
  73. 127.0.0.1 - - [23/Dec/2011:13:55:47 -0500] "GET /xampp/ HTTP/1.1" 200 588
  74. 127.0.0.1 - - [23/Dec/2011:13:55:47 -0500] "GET /xampp/head.php HTTP/1.1" 200 1362
  75. 127.0.0.1 - - [23/Dec/2011:13:55:47 -0500] "GET /xampp/navi.php HTTP/1.1" 200 2290
  76. 127.0.0.1 - - [23/Dec/2011:13:55:47 -0500] "GET /xampp/start.php HTTP/1.1" 200 786
  77. 127.0.0.1 - - [23/Dec/2011:13:55:47 -0500] "GET /favicon.ico HTTP/1.1" 200 30894
  78. 127.0.0.1 - - [23/Dec/2011:13:55:50 -0500] "GET /work HTTP/1.1" 403 1111
  79.  
  80. <Directory /usr/local/httpd/htdocs>
  81. Options Indexes FollowSymLinks
  82. </Directory>
  83.  
  84. [Fri Dec 23 23:03:58 2011] [error] [client 192.168.15.20] Symbolic link not allowed or link target not accessible: /var/www/html/testsym
  85.  
  86. chmod go+x /home/Dropbox
  87.  
  88. Options +FollowSymLinks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement