Webtool welche Eintragung von Virtualhosts übernimmt
-
binford6100turbo
- Posts: 35
- Joined: 2005-12-30 13:38
Webtool welche Eintragung von Virtualhosts übernimmt
Hallo,
gibt es für den Apache2 ein Webfrontend welches die Eintragung von Virtualhosts übernimmt. Ich weiß es gibt solche Verwaltungssyteme wie Confix oder Plesk, aber das will ich nicht auf meinem Server haben, da die nur unnötig Ressourcen schlucken. Ich brauche also ein einfaches Frontend um neue Domains anlegen zu können - ohne großartigen Schnickschnack!
Kennt da jemand was?!
Gruß
Binford
gibt es für den Apache2 ein Webfrontend welches die Eintragung von Virtualhosts übernimmt. Ich weiß es gibt solche Verwaltungssyteme wie Confix oder Plesk, aber das will ich nicht auf meinem Server haben, da die nur unnötig Ressourcen schlucken. Ich brauche also ein einfaches Frontend um neue Domains anlegen zu können - ohne großartigen Schnickschnack!
Kennt da jemand was?!
Gruß
Binford
Re: Webtool welche Eintragung von Virtualhosts übernimmt
Dafür reicht auch ein kleines Bash-Script...
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
binford6100turbo
- Posts: 35
- Joined: 2005-12-30 13:38
Re: Webtool welche Eintragung von Virtualhosts übernimmt
kenne mich mit skriptprogrammierung nicht aus. wie müsste so ein skript aussehen? Ideal wäre wenn man eingeben könnte adddomain und er einen dann fragt wie die Domain heißen soll, wie das DocumentRoot lauten soll etc...
Re: Webtool welche Eintragung von Virtualhosts übernimmt
Bei den geringen Anforderungen vielleicht schon überdimensioniert: SysCP.
Aber wenn man einmal sowas anfängt möchte man schnell auch nocht die und die und die Funktion... Schaus einfach mal an.
Aber wenn man einmal sowas anfängt möchte man schnell auch nocht die und die und die Funktion... Schaus einfach mal an.
Re: Webtool welche Eintragung von Virtualhosts übernimmt
Quick'n'dirty inklusie Hausaufgaben:
Elegantere Lösungen erbeten...
Code: Select all
#!/bin/bash
shopt -s extglob
error() {
local ERRMSG="n\033[41m\033[1;33m ERROR: \033[0m\033[1m %s\033[0mn";
printf "${ERRMSG}" "${1:-$(basename ${0}) aborting...}" >&2;
exit 1;
}
get_userinput() {
until [[ -z "${1}" || -z "${2}" ]]; do
local option="${2}" param="${1}" value="";
echo -en "\033[1m ${option} \033[0m"; read value;
if [[ ! -z $(echo "${value}" | tr -d [:print:]) ]]; then
error "non-printable char(s) detected, aborting...";
else
eval ${param}="${value// /°°}";
fi
shift;
shift;
done
}
create_vhost() {
# ...
}
clear
echo -e "nt\033[32m$(date -u +'%d.%m.%Y %H:%M:%S') - $(basename ${0})\033[0mn"
get_userinput "fqdn" "FQDN of new vhost:"
[[ "${?}" -eq "0" ]] && create_vhost "${fqdn//°°/ }";
exit 0
PayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
-
binford6100turbo
- Posts: 35
- Joined: 2005-12-30 13:38
Re: Webtool welche Eintragung von Virtualhosts übernimmt
wow - danke für die Mühe!
Wenn du mir jetzt noch sagst als was ich das Skript speichern soll und was es genau macht, dann bin ich dir ewig dankbar ;-)
Gruß
Binford
Wenn du mir jetzt noch sagst als was ich das Skript speichern soll und was es genau macht, dann bin ich dir ewig dankbar ;-)
Gruß
Binford
Re: Webtool welche Eintragung von Virtualhosts übernimmt
Du weist aber scho, dass du das Script noch anpassen musst? Das erstellt noch keinen VHost derzeit. Und speichern kannst du es als was du willst. I.d.R. speichert man Shell Scripte mit .sh.
-
binford6100turbo
- Posts: 35
- Joined: 2005-12-30 13:38
Re: Webtool welche Eintragung von Virtualhosts übernimmt
puuh, da wirds aber kompliziert...wie gesagt...skriptprogrammierung kann ich nicht...
gibts da kein Standard-Skript?
gibts da kein Standard-Skript?
Re: Webtool welche Eintragung von Virtualhosts übernimmt
http://www.tldp.org/LDP/abs/html/index.html
Speicer das Script als test.sh und führe es aus:
Speicer das Script als test.sh und führe es aus:
Code: Select all
chmod 0755 test.sh; ./test.shPayPal.Me/JoeUser ● FreeBSD Remote Installation
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Wings for Life ● Wings for Life World Run
„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
