Webes admin NEW!! Apache2 RewriteRule para :)

Fórumok

Sziasztok,

Tud valaki esetleg egy cgi gyűjteményt, webes admin rész kialakításához?
Szeretném az általam felügyelt gépet /Debi/ egy egyszerű cgi-s módszerrel nézegetni, uptime, statisztikák, ki-be jelentkezések, log kifirkálása stb...
Nincs kedvem kézzel írni egy ilyet :)

Köszönet

Hozzászólások

No még egy kérdés:)

Ez már inkáb Apache2, be szeretném rakni a webmint az apache mögé, anno csináltam ilyet Zope-al ezért most is próbálkozom:)

/etc/apache2/sites-available/default

NameVirtualHost *

ServerName valami.dyn.hu
ServerAlias valami.dyn.hu *.valami.dyn.hu
ServerAdmin webmaster@localhost

DocumentRoot /srv/http/

Options FollowSymLinks
AllowOverride None

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all

ErrorLog /var/log/apache2/error.log

LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128

ServerName webmin.valami.dyn.hu
RewriteEngine On
RewriteRule ^/(.*) http://localhost:10000/VirtualHostBase/http/webmin.valami.dyn.hu:2005/V… [L,P]

És ez a vége lenne az érdekes, mert a webmin.valami.dyn.hu:2005 -re semmi válasz csak a valami.dyn.hu:2005-re
A mods-enabled -ben ott a soft-link a rewrite.load -ra.

Ja másik meg, hogy drága apache2 így indul...:
# /etc/init.d/apache2 restart
Forcing reload of web server: Apache2apache2: Could not determine the
server's fully qualified domain name, using 192.168.1.66 for ServerName
apache2: Could not determine the server's fully qualified domain name,
using 192.168.1.66 for ServerName

Ez miért van? És ez így nagyon gagyi config? :))
- www.horvtoys.ini.hu -

"Forcing reload of web server: Apache2apache2: Could not determine the
server's fully qualified domain name, using 192.168.1.66 for ServerName
apache2: Could not determine the server's fully qualified domain name,
using 192.168.1.66 for ServerName

Ez miért van? És ez így nagyon gagyi config? :))"

A "hostname" es a "hostname -f" parancsokat add ki. Elsore a valami, masodikra a valami.dyn.hu cimeket kell visszakapnod. Ha az utobbi nem teljesul, akkor 'kedvenc_editorod /etc/hosts', es ellenorizd, hogy legyen benne egy ilyen sor:

123.123.123.123 valami.dyn.hu valami

feltetelezven azt, hogy az 123.123.123.123 a geped ipcime.