a very big request
Posted: Sat Jan 22, 2005 2:28 pm
hello there,
i have a very big problem . i have a server and i want to make a script
to allow create/edit/remove vhosts . i am using apache so the chosts
file is something like this :
now what i would like is a script that reads the file and echo's me the
vhosts like this :
if i press delete i want the script to delete this from the file :
so that the vhost with the name bla1 removes . if i press delete , i want
to have some fileds with the values in the directive . like this :
and if i change bla to huh to save the file like this :
i know it's very hard to do it , but please someone , help me ... i've been
trying to get this done but i can't . it's too dificult for me . tell me at least
if it's posiblle . please , help me !
Thank you very very much
i have a very big problem . i have a server and i want to make a script
to allow create/edit/remove vhosts . i am using apache so the chosts
file is something like this :
Code: Select all
<VirtualHost *>
bla1
bla
bla
</VirtualHost>
<VirtualHost *>
bla2
bla
bla
</VirtualHost>
<VirtualHost *>
bla3
bla
bla
</VirtualHost>vhosts like this :
Code: Select all
bla1 Delete | Modify
bla2 Delete | Modify
bla3 Delete | ModifyCode: Select all
<VirtualHost *>
bla1
bla
bla
</VirtualHost>to have some fileds with the values in the directive . like this :
Code: Select all
|їu]bla ї/u]|
|їu]bla ї/u]|
|їu]bla ї/u]|Code: Select all
<VirtualHost *>
bla1
huh
huh
</VirtualHost>trying to get this done but i can't . it's too dificult for me . tell me at least
if it's posiblle . please , help me !
Thank you very very much