Итак к конфигам:
/usr/hosting/httpd_configs/mydomain.ru.conf
Код: Выделить всё
<VirtualHost *:80>
ScriptAlias /cgi-bin/ /usr/hosting/sites/renat/cgi-bin/
ServerAdmin support@mydomain.ru
SuexecUserGroup renat renat
DocumentRoot /usr/hosting/sites/renat/www
ServerName mydomain.ru
ServerAlias www.mydomain.ru
# Директория пользователя
<Directory /usr/hosting/sites/renat/www>
Options -Indexes FollowSymLinks MultiViews +ExecCGI
AddHandler fcgid-script .php
FcgidWrapper /usr/hosting/sites/renat/cgi-bin/php-wrapper .php
AllowOverride All
Order deny,allow
Allow from all
</Directory>
# директория скриптов пользователя
<Directory /usr/hosting/sites/renat/cgi-bin>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php index.html index.htm index.shtml
ErrorLog /usr/hosting/sites/renat/log/error.log
CustomLog /usr/hosting/sites/renat/log/access.log common
</VirtualHost>
Код: Выделить всё
NameVirtualHost *:80
# Первый виртуал-хост
<VirtualHost *:80>
ScriptAlias /cgi-bin/ /usr/local/www/apache22/cgi-bin/
DocumentRoot /usr/local/www/apache22/data
ServerName ip.ip.ip.ip # тут мой ип
# Директория пользователя
<Directory /usr/local/www/apache22/data>
Options -Indexes FollowSymLinks +ExecCGI
AllowOverride All
Order deny,allow
Allow from all
</Directory>
DirectoryIndex index.php index.html index.htm index.shtml
</VirtualHost>
Код: Выделить всё
...................................................................
LoadModule fcgid_module libexec/apache22/mod_fcgid.so
LoadModule suexec_module libexec/apache22/mod_suexec.so
LoadModule php5_module libexec/apache22/libphp5.so
LoadModule cgi_module libexec/apache22/mod_cgi.so
LoadModule cgid_module libexec/apache22/mod_cgid.so
...................................................................
Код: Выделить всё
Server version: Apache/2.2.29 (FreeBSD)
Server built: Jan 31 2015 17:15:54
Server's Module Magic Number: 20051115:36
Server loaded: APR 1.4.8, APR-Util 1.5.3
Compiled using: APR 1.4.8, APR-Util 1.5.3
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types"
-D SERVER_CONFIG_FILE="etc/apache22/httpd.conf"
Код: Выделить всё
-D AP_DOC_ROOT="/usr/hosting/sites/"
-D AP_GID_MIN=1000
-D AP_HTTPD_USER="www"
-D AP_LOG_EXEC="/var/log/httpd/suexec.log"
-D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D AP_UID_MIN=1000
-D AP_USERDIR_SUFFIX="/usr/hosting/sites/*/cgi-bin"
Хотя сайт нормально открывается.