Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 1st, 2012  |  syntax: None  |  size: 2.73 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. error.log
  2.  
  3. [Wed Aug 01 15:37:19 2012] [notice] caught SIGTERM, shutting down
  4. PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
  5. [Wed Aug 01 15:37:20 2012] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.17 with Suhosin-Patch configured -- resuming normal operations
  6. [Wed Aug 01 15:37:23 2012] [error] [client 127.0.0.1] File does not exist: /home/user/sites/favicon.ico
  7.  
  8.  
  9. DUMP_VHOST
  10.  
  11.  
  12. root@user:/etc/apache2/sites-available# apache2 -t -D DUMP_VHOSTS
  13. VirtualHost configuration:
  14. wildcard NameVirtualHosts and _default_ servers:
  15. *:80                   is a NameVirtualHost
  16.          default server * (/etc/apache2/sites-enabled/mysite:1)
  17.          port 80 namevhost * (/etc/apache2/sites-enabled/mysite:1)
  18.          port 80 namevhost site.loc (/etc/apache2/sites-enabled/vhosts.conf:1)
  19.          port 80 namevhost site2.loc (/etc/apache2/sites-enabled/vhosts.conf:7)
  20. Syntax OK
  21.  
  22. /etc/apache2/sites-available/mysite   (идет вместо default. default отключен)
  23.  
  24. <VirtualHost *:80>
  25.         ServerAdmin webmaster@localhost
  26.  
  27.         DocumentRoot /home/user/sites
  28.         <Directory />
  29.                 Options FollowSymLinks
  30.                 AllowOverride All
  31.         </Directory>
  32.         <Directory /home/user/sites/>
  33.                 Options Indexes FollowSymLinks MultiViews
  34.                 AllowOverride All
  35.                 Order allow,deny
  36.                 allow from all
  37.         </Directory>
  38.  
  39.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  40.         <Directory "/usr/lib/cgi-bin">
  41.                 AllowOverride All
  42.                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  43.                 Order allow,deny
  44.                 Allow from all
  45.         </Directory>
  46.  
  47.         ErrorLog /var/log/apache2/error.log
  48.  
  49.         # Possible values include: debug, info, notice, warn, error, crit,
  50.         # alert, emerg.
  51.         LogLevel warn
  52.  
  53.         CustomLog /var/log/apache2/access.log combined
  54.  
  55.     Alias /doc/ "/usr/share/doc/"
  56.     <Directory "/usr/share/doc/">
  57.         Options Indexes MultiViews FollowSymLinks
  58.         AllowOverride All
  59.         Order deny,allow
  60.         Deny from all
  61.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  62.     </Directory>
  63.  
  64. </VirtualHost>
  65.  
  66.  
  67.  
  68. /etc/apache2/sites-available/vhost.conf
  69.  
  70. <VirtualHost *:80>
  71.         ServerName site.loc
  72.         ServerAlias www.site.loc
  73.         DocumentRoot /home/user/sites/site1
  74. </VirtualHost>
  75.  
  76. <VirtualHost *:80>
  77.         ServerName site2.loc
  78.         ServerAlias www.site2.loc
  79.         DocumentRoot /home/user/sites/site2
  80. </VirtualHost>
  81.  
  82.  
  83. /etc/host
  84. 127.0.0.1       localhost       site.loc
  85. 127.0.0.1       localhost       site2.loc
  86.  
  87.  
  88. httpd.conf
  89.  
  90. ServerName      127.0.0.1