Hozzászólások
esetleg atiranyitassal scriptaliasolt konyvtarba vagy
allowoverridet megnezni lehet azert nemmegy vagy
lehet hogy ExecCGI mert case sensitive
- A hozzászóláshoz be kell jelentkezni
Próbákozz ezzel:
[code:1:7b8d62c3e7]AddHandler cgi-script .pl .sh .cgi
<VirtualHost 195.x.x.x>
DocumentRoot /home/web/camail
ServerName www.xxxl.hu
ServerAlias xxx.hu
ErrorLog /home/khiraly/error.log
ServerAdmin khiraly123@gmx.net
Options +ExecCGI
DirectoryIndex index.html index.htm index.cgi
</VirtualHost>[/code:1:7b8d62c3e7]
- A hozzászóláshoz be kell jelentkezni
[quote:db0444a48e="Xanco"]Próbákozz ezzel:
Sajnos nem sikerult. ,,You don't have permession'' -t ir ki meg mindig ...
[code:1:db0444a48e]
Forbidden
You don't have permission to access /index.cgi on this server.
[/code:1:db0444a48e]
Udv,
Khiraly
- A hozzászóláshoz be kell jelentkezni
A sima index.html -t megjeleniti. Tehat csak a perl futtatasaval van a gond (vagy akarmilyen .cgi futtatasaval).
Szoval a virtalhost bejegyzes mukodik, documentroot meg a serveralias is jo. Csak a .cgi nem megy. (ami eloszor is a problema volt).
Udv,
Khiraly
- A hozzászóláshoz be kell jelentkezni
[code:1:db7dbb8766]ls -la /home/web/camail/index.cgi[/code:1:db7dbb8766] mit mond?
A httpd.conf -odban vannak <Directory ..> részek? Ezek be tudod idézni?
- A hozzászóláshoz be kell jelentkezni
[quote:2a4ad54b88="Xanco"][code:1:2a4ad54b88]ls -la /home/web/camail/index.cgi[/code:1:2a4ad54b88] mit mond?
A httpd.conf -odban vannak <Directory ..> részek? Ezek be tudod idézni?
Termeszetesen mindent megprobalok beidezni.
[code:1:2a4ad54b88]
ls -lh index.pl
-rwxr-xr-x 1 web webgroup 1,6K 2004-10-26 09:04 index.pl
[/code:1:2a4ad54b88]
A virtualhostos bejegyzes meg egyszer (index.pl es nem index.cgi de eszerint javitottam a virtualhostos bejegyzest is (meg index.cgi-vel se ment)).
[code:1:2a4ad54b88]
<VirtualHost 195.x.x.x>
DocumentRoot /home/web/camail
ServerName www.xxx.hu
ServerAlias xxx.hu
ErrorLog /home/khiraly/error.log
ServerAdmin khiraly123@gmx.net
Options +ExecCGI
DirectoryIndex index.html index.htm index.cgi index.pl
</VirtualHost>
[/code:1:2a4ad54b88]
Megprobalom kigyujteni az osszes directory bejegyzest a konfigfajlbol:
[code:1:2a4ad54b88]
DocumentRoot /var/www/
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<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>
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi index.php
</IfModule>
<IfModule mod_alias.c>
Alias /icons/ /usr/share/apache/icons/
<Directory /usr/share/apache/icons>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /images/ /usr/share/images/
<Directory /usr/share/images>
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_alias.c>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
AllowOverride None
Options ExecCGI -MultiViews
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_ssl.c>
... #itt nem idezek mindent
<Files ~ "\.(cgi|shtml)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/lib/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
</IfModule>
<Directory /home/misi/epebaj >
AllowOverride FileInfo
</Directory>
[/code:1:2a4ad54b88]
Termeszetesen a hozzaszolas elejen beidezet virtualhost bejegyzesben van meg directory (azt nem irom ide, csak a helyet foglalna).
Remelem valamit segitett. Eleg tanacstalan vagyok ...
- A hozzászóláshoz be kell jelentkezni
Pedig lehet, hogy lényeges lenne!
Mindenesetre azt hiszem ennek már mennie kell:
[code:1:4019db4f6a]AddHandler cgi-script .pl .sh .cgi
<VirtualHost 195.x.x.x>
DocumentRoot /home/web/camail
ServerName www.xxxl.hu
ServerAlias xxx.hu
ErrorLog /home/khiraly/error.log
ServerAdmin khiraly123@gmx.net
DirectoryIndex index.html index.htm index.cgi
<Directory /home/web/camail>
Options +ExecCGI
</Directory>
</VirtualHost>[/code:1:4019db4f6a]
- A hozzászóláshoz be kell jelentkezni
[quote:e7ae3fc060="Xanco"]
Mindenesetre azt hiszem ennek már mennie kell:
Nagyon szepen koszonom. Mostmar tenyleg mukodik. Koszonom meg egyszer.
Udv,
Khiraly
- A hozzászóláshoz be kell jelentkezni
Sziasztok!
Problema leirasa:
- Olyan virtualhost letrehozasa, ahol a documentroot mar a futtathato programokat (*.pl) tartalmazza. Tehat ne scriptAlias -sal tegyem a ./cgi-bin konyvtarat futtathatova.
Evvel probalkoztam:
[code:1:a9d839dfcb]
<VirtualHost 195.x.x.x>
DocumentRoot /home/web/camail
ServerName www.xxxl.hu
ServerAlias xxx.hu
ErrorLog /home/khiraly/error.log
ServerAdmin khiraly123@gmx.net
# ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Location />
Options ExecCgi
</Location>
</VirtualHost>
[/code:1:a9d839dfcb]
Sajnos ez nem mukodik. Probaltam meg a scriptAliassal is buvolni (ScriptAlias / /home/web/camail/) de az se mukodott.
Directory se akart mukodni.
Van valakinek esetleg egy kesz virtualhostos bejegyzese a fenti problemara?
Minden hozzaszolast szivesen fogadok!
Udv,
Khiraly
- A hozzászóláshoz be kell jelentkezni