nastaveni apache

Lukas Vana fabian at fabian.cz
Mon Mar 19 20:22:18 CET 2007


Cizek.Milan wrote:
> Ahoj,
> kdyz jsme u toho, vyuziji toto vlakno a zeptam se tez. :-)
>
> Jak na apachi2, ktery pouziva virtual hosty pres mod_vhost_alias vyresit nastaveni php (open_basedir) apod.? Ono to jaksi nechce fungovat. Slysel jsem, ze pro nejaky takovy vetsi hosting je treba pouzit nejake jine moduly, ktere spravnou funkcnost umi zajistit, nevite o necem?
>
> Milan
>   
Pouzivame stejny modul a nastavene to mame takto:

/usr/local/etc/apache22/httpd.conf:
NameVirtualHost x.x.x.x:80
Include etc/apache22/vhosts.conf

/usr/local/etc/apache22/vhosts.conf:
## jednotlive 
vhosty                                                                                                                                                                               

Include /home/hosting/vh01_01/conf/vh01_01.vhost
Include /home/hosting/vh01_01/conf/vh02_01.vhost
atd.

Konfiguraky jednotilvych VH:

<VirtualHost 
x.x.x.x:80>                                                                                                                                                                       

    ServerName  www.domena.cz
    ServerAlias domena.cz
    ServerAdmin nekdo at nekde.cz
    DocumentRoot /home/hosting/vh01_01/ftp/www
                                                                                                                                                                                                   

    ErrorLog    /home/hosting/vh01_01/logs/www.domena.cz-error.log
    CustomLog   /home/hosting/vh01_01/logs/www.domena.cz-access.log combined

    <Directory /home/hosting/vh01_01/ftp/www>
        php_admin_value open_basedir /home/hosting/vh01_01/ftp/www
        php_admin_value upload_tmp_dir /home/hosting/vh93_01/ftp/www/tmp
        php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f 
vh01_01 at nekde.cz"
        Options -Indexes
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Snad to pomuze :)

-- 
Lukas Vana (fabian)

IT bridge.net s.r.o.
Vinohradska 184
130 52 Praha 3
Czech republic
tel.: +420 267 132 439
web: http://www.itbridge.net

home page: http://home.fabian.cz
icq: 274000127
irc: #czech at AfterNet, #penguin.cz at IRCNet 




More information about the Users-l mailing list