Advertisement
Powderking

Untitled

Dec 19th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. My /etc/apache2/httpd.conf looks like
  2.  
  3. <Location /sabnzbd>
  4. order deny,allow
  5. deny from all
  6. allow from all
  7. ProxyPass http://localhost:8080/sabnzbd
  8. ProxyPassReverse http://localhost:8080/sabnzbd
  9. </Location>
  10.  
  11. Alias /newznab /var/www/newznab/www
  12. <Directory /var/www/newznab/www/>
  13. Options FollowSymLinks
  14. AllowOverride All
  15. </Directory>
  16.  
  17. ------------------------------------------------------
  18.  
  19. And /var/www/newznab/www/.htaccess contains
  20.  
  21. RewriteEngine on
  22. RewriteBase /newznab
  23.  
  24. # Do not process images or CSS files further
  25. RewriteRule \.(css|jpe?g|gif|png|js|ico|mp3)$ - [L]
  26.  
  27. # Leave /admin and /install static
  28. RewriteRule ^(admin|install).*$ - [L]
  29.  
  30. # Rewrite web pages to one master page
  31. RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [QSA,L]
  32. RewriteRule ^([^/\.]+)/([^/]+)/?$ index.php?page=$1&id=$2 [QSA,L]
  33. RewriteRule ^([^/\.]+)/([^/]+)/([^/]+)/? index.php?page=$1&id=$2&subpage=$3 [QSA,L]
  34.  
  35. ------------------------------------------------------
  36.  
  37. /etc/apache2/sites-available/newznab
  38.  
  39. <VirtualHost *:80>
  40. ServerAdmin webmaster@localhost
  41. ServerName media-server
  42.  
  43. # These paths should be fine
  44. DocumentRoot /var/www/newznab/www
  45. ErrorLog /var/log/apache2/error.log
  46. LogLevel warn
  47. </VirtualHost>
  48.  
  49. ------------------------------------------------------
  50.  
  51. /var/log/apache2/error.log
  52.  
  53. [Wed Dec 19 15:49:56 2012] [notice] caught SIGTERM, shutting down
  54. [Wed Dec 19 15:49:57 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze14 with Suhosin-Patch configured -- resuming normal operations
  55. [Wed Dec 19 15:50:01 2012] [error] [client 192.168.1.65] PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 523800 bytes) in Unknown on line 0
  56. [Wed Dec 19 15:50:05 2012] [error] [client 192.168.1.65] PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 523800 bytes) in Unknown on line 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement