thufir

ScriptAlias

Jan 1st, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. thufir@dur:~$
  2. thufir@dur:~$ ll /etc/apache2/sites-enabled/mailman
  3. lrwxrwxrwx 1 root root 24 Dec 30 20:06 /etc/apache2/sites-enabled/mailman -> /etc/mailman/apache.conf
  4. thufir@dur:~$
  5. thufir@dur:~$
  6. thufir@dur:~$ cat /etc/apache2/sites-enabled/mailman
  7. # Sample configuration for Debian mailman with Apache
  8.  
  9. # We can find mailman here:
  10. ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/
  11. # And the public archives:
  12. Alias /pipermail/ /var/lib/mailman/archives/public/
  13. # Logos:
  14. Alias /images/mailman/ /usr/share/images/mailman/
  15.  
  16. # Use this if you don't want the "cgi-bin" component in your URL:
  17. # In case you want to access mailman through a shorter URL you should enable
  18. # this:
  19. #ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
  20. # In this case you need to set the DEFAULT_URL_PATTERN in
  21. # /etc/mailman/mm_cfg.py to http://%s/mailman/ for the cookie
  22. # authentication code to work. Note that you need to change the base
  23. # URL for all the already-created lists as well.
  24.  
  25. <Directory /usr/lib/cgi-bin/mailman/>
  26. AllowOverride None
  27. Options ExecCGI
  28. AddHandler cgi-script .cgi
  29. Order allow,deny
  30. Allow from all
  31. </Directory>
  32. <Directory /var/lib/mailman/archives/public/>
  33. Options FollowSymlinks
  34. AllowOverride None
  35. Order allow,deny
  36. Allow from all
  37. </Directory>
  38. <Directory /usr/share/images/mailman/>
  39. AllowOverride None
  40. Order allow,deny
  41. Allow from all
  42. </Directory>
  43.  
  44.  
  45. ## The following describes how to configure mailman on
  46. ## a dedicated virtual host, courtesy Marco d'Itri.
  47.  
  48. # Add these lines in /etc/mailman/mm_cfg.py:
  49. #DEFAULT_EMAIL_HOST = 'lists.example.net'
  50. #DEFAULT_URL_HOST = 'lists.example.net'
  51. #DEFAULT_URL_PATTERN = 'http://%s/'
  52.  
  53. #<VirtualHost *>
  54. #ServerName lists.example.net
  55. #DocumentRoot /var/www/lists
  56. #ErrorLog /var/log/apache2/lists-error.log
  57. #CustomLog /var/log/apache2/lists-access.log combined
  58. #
  59. #<Directory /var/lib/mailman/archives/>
  60. # Options FollowSymLinks
  61. # AllowOverride None
  62. #</Directory>
  63. #
  64. #Alias /pipermail/ /var/lib/mailman/archives/public/
  65. #Alias /images/mailman/ /usr/share/images/mailman/
  66. #ScriptAlias /admin /usr/lib/cgi-bin/mailman/admin
  67. #ScriptAlias /admindb /usr/lib/cgi-bin/mailman/admindb
  68. #ScriptAlias /confirm /usr/lib/cgi-bin/mailman/confirm
  69. #ScriptAlias /create /usr/lib/cgi-bin/mailman/create
  70. #ScriptAlias /edithtml /usr/lib/cgi-bin/mailman/edithtml
  71. #ScriptAlias /listinfo /usr/lib/cgi-bin/mailman/listinfo
  72. #ScriptAlias /options /usr/lib/cgi-bin/mailman/options
  73. #ScriptAlias /private /usr/lib/cgi-bin/mailman/private
  74. #ScriptAlias /rmlist /usr/lib/cgi-bin/mailman/rmlist
  75. #ScriptAlias /roster /usr/lib/cgi-bin/mailman/roster
  76. #ScriptAlias /subscribe /usr/lib/cgi-bin/mailman/subscribe
  77. #ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
  78. #</VirtualHost>
  79.  
  80. thufir@dur:~$
  81. thufir@dur:~$
  82.  
  83.  
  84. error:
  85.  
  86. thufir@dur:~$
  87. thufir@dur:~$
  88. thufir@dur:~$ tail /var/log/apache2/error.log
  89. [Mon Dec 30 19:49:17.033855 2013] [core:notice] [pid 26854:tid 3074234944] AH00094: Command line: '/usr/sbin/apache2'
  90. [Mon Dec 30 19:51:27.976149 2013] [mpm_event:notice] [pid 26854:tid 3074234944] AH00491: caught SIGTERM, shutting down
  91. [Mon Dec 30 19:51:29.128646 2013] [mpm_event:notice] [pid 27016:tid 3074742848] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
  92. [Mon Dec 30 19:51:29.128936 2013] [core:notice] [pid 27016:tid 3074742848] AH00094: Command line: '/usr/sbin/apache2'
  93. [Mon Dec 30 22:03:10.355200 2013] [mpm_event:notice] [pid 27016:tid 3074742848] AH00491: caught SIGTERM, shutting down
  94. [Tue Dec 31 07:27:30.154998 2013] [mpm_event:notice] [pid 1460:tid 3074062912] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
  95. [Tue Dec 31 07:27:30.197942 2013] [core:notice] [pid 1460:tid 3074062912] AH00094: Command line: '/usr/sbin/apache2'
  96. [Wed Jan 01 02:30:57.181239 2014] [mpm_event:notice] [pid 1460:tid 3074062912] AH00491: caught SIGTERM, shutting down
  97. [Wed Jan 01 08:50:15.488528 2014] [mpm_event:notice] [pid 1422:tid 3074406976] AH00489: Apache/2.4.6 (Ubuntu) configured -- resuming normal operations
  98. [Wed Jan 01 08:50:15.516647 2014] [core:notice] [pid 1422:tid 3074406976] AH00094: Command line: '/usr/sbin/apache2'
  99. thufir@dur:~$
  100. thufir@dur:~$
Advertisement
Add Comment
Please, Sign In to add comment