LINUX.ORG.RU

История изменений

Исправление Garcia, (текущая версия) :

конфиг httpd прод

<VirtualHost ip:80>
    DocumentRoot /var/www/server1/site.com/www
    ServerName site.com
    RewriteEngine On                                                                                                                              
    RewriteOptions inherit
    ErrorLog /var/wwwlogs/site.com-error.log
    CustomLog /var/wwwlogs/site.com-access.log common
</VirtualHost>

<VirtualHost ip:80>
    DocumentRoot /var/www/server1/site.com/mwww
    ServerName m.site.com
    ErrorLog /var/wwwlogs/m.site.com-error.log
    CustomLog /var/wwwlogs/m.site.com-access.log common
</VirtualHost>

<Directory /var/www/server1/site.com>
   AllowOverride All
   php_admin_value open_basedir /var/www/server1/site.com
   php_admin_value upload_tmp_dir /var/www/server1/site.com/tmp
</Directory>

<Directory /var/www/server1/site.com/www/hhh>
        AllowOverride All
        php_value max_execution_time 1200
        php_value memory_limit 100M
</Directory>

конфиг httpd тест

<VirtualHost ip:80>
        DocumentRoot /var/www/test/test.site.com/www
        ServerName test.site.com
        RewriteEngine On
        RewriteOptions inherit
        ErrorLog /var/www/test/test.site.com.error.log
        CustomLog /var/www/test/test.site.com.access.log common

</VirtualHost>
<Directory /var/www/test/test.site.com>
        AllowOverride All
        php_admin_value open_basedir /var/www/test/test.site.com
        php_admin_value upload_tmp_dir /var/www/test/test.site.com/tmp
</Directory>
<Directory /var/www/test/test.site.com/www/hhh>
        AllowOverride All
        php_value max_execution_time 1200
        php_value memory_limit 100M
</Directory>

Исправление Garcia, :

конфиг httpd прод

<VirtualHost ip:80>
    DocumentRoot /var/www/server1/site.com/www
    ServerName site.com
    RewriteEngine On                                                                                                                              RewriteOptions inherit
    ErrorLog /var/wwwlogs/site.com-error.log
    CustomLog /var/wwwlogs/site.com-access.log common
</VirtualHost>

<VirtualHost ip:80>
    DocumentRoot /var/www/server1/site.com/mwww
    ServerName m.site.com
    ErrorLog /var/wwwlogs/m.site.com-error.log
    CustomLog /var/wwwlogs/m.site.com-access.log common
</VirtualHost>

<Directory /var/www/server1/site.com>
   AllowOverride All
   php_admin_value open_basedir /var/www/server1/site.com
   php_admin_value upload_tmp_dir /var/www/server1/site.com/tmp
</Directory>

<Directory /var/www/server1/site.com/www/hhh>
        AllowOverride All
        php_value max_execution_time 1200
        php_value memory_limit 100M
</Directory>

конфиг httpd тест

<VirtualHost ip:80>
        DocumentRoot /var/www/test/test.site.com/www
        ServerName test.site.com
        RewriteEngine On
        RewriteOptions inherit
        ErrorLog /var/www/test/test.site.com.error.log
        CustomLog /var/www/test/test.site.com.access.log common

</VirtualHost>
<Directory /var/www/test/test.site.com>
        AllowOverride All
        php_admin_value open_basedir /var/www/test/test.site.com
        php_admin_value upload_tmp_dir /var/www/test/test.site.com/tmp
</Directory>
<Directory /var/www/test/test.site.com/www/hhh>
        AllowOverride All
        php_value max_execution_time 1200
        php_value memory_limit 100M
</Directory>

Исходная версия Garcia, :

конфиг httpd прод

<VirtualHost ip:80>
    DocumentRoot /var/www/server1/site.com/www
    ServerName site.com
    RewriteEngine On                                                                                                                              RewriteOptions inherit
    ErrorLog /var/wwwlogs/site.com-error.log
    CustomLog /var/wwwlogs/site.com-access.log common
</VirtualHost>

<VirtualHost ip:80>
    DocumentRoot /var/www/server1/site.com/mwww
    ServerName m.site.com
    ErrorLog /var/wwwlogs/m.site.com-error.log
    CustomLog /var/wwwlogs/m.site.com-access.log common
</VirtualHost>

<Directory /var/www/server1/site.com>
   AllowOverride All
   php_admin_value open_basedir /var/www/server1/site.com
   php_admin_value upload_tmp_dir /var/www/server1/site.com/tmp
</Directory>

<Directory /var/www/server1/site.com/hhh>
        AllowOverride All
        php_value max_execution_time 1200
        php_value memory_limit 100M
</Directory>

конфиг httpd тест

<VirtualHost ip:80>
        DocumentRoot /var/www/test/test.site.com/www
        ServerName test.site.com
        RewriteEngine On
        RewriteOptions inherit
        ErrorLog /var/www/test/test.site.com.error.log
        CustomLog /var/www/test/test.site.com.access.log common

</VirtualHost>
<Directory /var/www/test/test.site.com>
        AllowOverride All
        php_admin_value open_basedir /var/www/test/test.site.com
        php_admin_value upload_tmp_dir /var/www/test/test.site.com/tmp
</Directory>
<Directory /var/www/test/test.site.com/www/hhh>
        AllowOverride All
        php_value max_execution_time 1200
        php_value memory_limit 100M
</Directory>