[linux] Apache a cgi pre VirtualHosty
Hrabcak Rado
hrabcak na phf.euke.sk
Pondělí Listopad 29 13:32:16 CET 1999
Mam taky problem, ze mi nejde spustat cgicka, a vo virtualnych hostoch sa
ani do cgi-bin adresara nedostanem. Neviem asi robim nejake chyby v
konfiguracii ale neviem prist nato ze kde.
Vedel by mi niekto poradit.
Dalsi problem mam s PHP4 b2. Skompiloval som ho bez problemov,
nainstaloval sa do libexec adresara pomocou apxs, ale ked sa pokusim
spustit apache a snazim sa natiahnut modphp4.so apache vypise could not
start bez udania dovodu, a v logu sa nic neobjavi.
Ma s tym niekto skusenosti?
Toto je fragment httpd.conf:
ServerName www.euke.sk
DocumentRoot "/home/httpd/htdocs"
<Directory />
Order deny,allow
Deny from all
</Directory>
<Directory "/home/httpd/htdocs">
Options Indexes ExecCGI Includes SymLinksIfOwnerMatch
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
UserDir public_html
<Directory /home/*/*/*/public_html>
AllowOverride FileInfo
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNOEXEC ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
Deny from all
</Limit>
</Directory>
<Directory /home/*/*/*/public_html/cgi-bin>
AllowOverride FileInfo
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNOEXEC ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
Deny from all
</Limit>
</Directory>
ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
<Directory "/home/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
NameVirtualHost 193.87.53.10
<VirtualHost www.euke.sk>
DocumentRoot /home/httpd/htdocs
ServerName www.euke.sk
ErrorLog /home/httpd/logs/euke.error.log
ErrorDocument 404 /errormsgs/not-found.shtml
</VirtualHost>
<VirtualHost www.duffy.sk>
User hrabcak
Group hrabcak
ServerAdmin duffy na duffy.sk
DocumentRoot /home/PHF/2001/hrabcak/public_html
ServerName www.duffy.sk
ErrorLog /home/httpd/logs/duffy.error.log
TransferLog /home/httpd/logs/duffy.access.log
ScriptAlias /cgi-bin/ /home/PHF/2001/hrabcak/public_html/cgi-bin/
DirectoryIndex index.html index.php3 index.htm index.shtm index.shtml index.phtml
AddType text/html .shtml
AddHandler server-parsed .shtml
ErrorDocument 404 /errormsgs/not-found.shtml
ErrorDocument 403 /errormsgs/forbidden.shtml
<Directory /home/PHF/2001/hrabcak/public_html>
AllowOverride All
Options MultiViews Indexes FollowSymLinks Includes ExecCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
All from all
</Limit>
</Directory>
<Directory /home/PHF/2001/hrabcak/public_html/cgi-bin>
AllowOverride All
Options All
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
Allow from all
</Limit>
</Directory>
</VirtualHost>
---D-u-f-f-y---t-h-e---M-i-n-d-f-l-y-e-r---
-=www.duffy.sk=-=duffy na duffy.sk=-=00-421-91-7765077=-
-=ICQ 25915231=-
Další informace o konferenci linux