![]() |
![]() |
|
|
|||||||
| Linux, UNIX, Open Source Rat & Tat bei Problemen und Fragen rund um GNU/Linux, BSD und sonstige UNIXe |
![]() |
|
|
Themen-Optionen | Ansicht |
|
|
#1 |
|
Elite
![]() |
Hallo,
ich habe unter Debian Apache 2.0.54 laufen. Unter /var/www hab ich mehrere Ordner, zB der für die Homepage und der für phpmyadmin. Ich will gerne über sites-enabled phpmyadmin schnell zugänglich machen, da ich nur eine Domain habe unter phpmyadmin.domain.at oder www.domain.at/phpmyadmin. Ich hab das so probiert: sites-available/default: Code:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.domain.at
ServerAlias domain.at
DocumentRoot /var/www/homepage
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/homepage>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/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
</Directory>
</VirtualHost>
Code:
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName phpmyadmin.domain.at
DocumentRoot /var/www/homepage
<Directory /var/www/homepage>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
</VirtualHost>
Danke schon mal Nestrus
____________________________________
"reden 2 unsinn im wcm forum, meint der dritte is eh offtopic" (Gifty am 14. Apr 2002 um 22:47 in " WCM Rat & Tat Forum > Meinung > Guru, e-Zitate & Off Topic > Kommt ein Mann zum Arzt...") |
|
|
|
|
|
#2 |
|
Inventar
![]() |
willst du es mit der subdomain machen musst bei document root den pfad zum phymyadmin verzeichnis angeben.
bei der 2. variante einfach beim vhost einen Alias /phpmyadmin auf /pfad_zu/phpmyadmin, so wie der alias auf /doc schon gesetzt ist. edit: nachdem phpmyadmin ohnehin in deinem document root ist, kann es eh mit www.domain.at/phpmyadmin-verzeichnisname ansprechen. |
|
|
|
|
|
#3 |
|
Elite
![]() |
Oh, hier hat sich ein kleiner Fehler eingeschlichen, das sites-available/phpmyadmin schaut natürlich so aus:
Code:
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName www.domain.at/phpmyadmin
DocumentRoot /var/www/phpmyadmin
<Directory /var/www/phpmyadmin>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
</Directory>
</VirtualHost>
Ein Alias wäre ja zB: Alias /phpmyadmin/ "/var/www/phpmyadmin" <Directory "/var/www/phpmyadmin/"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Leider geht das auch nicht...
____________________________________
"reden 2 unsinn im wcm forum, meint der dritte is eh offtopic" (Gifty am 14. Apr 2002 um 22:47 in " WCM Rat & Tat Forum > Meinung > Guru, e-Zitate & Off Topic > Kommt ein Mann zum Arzt...") |
|
|
|
|
|
#4 |
|
Elite
![]() |
*schieb*
____________________________________
"reden 2 unsinn im wcm forum, meint der dritte is eh offtopic" (Gifty am 14. Apr 2002 um 22:47 in " WCM Rat & Tat Forum > Meinung > Guru, e-Zitate & Off Topic > Kommt ein Mann zum Arzt...") |
|
|
|
|
|
#5 |
|
Inventar
![]() |
hat der webserver user leserechte ?
sinnvollerweise sollte für solche programme eh ein eigener webserver task mit eigenem user laufen. kannst du phpmyadmin überhaupt aufrufen oder funktioniert nur der vhost/alias nicht? |
|
|
|
|
|
#6 |
|
Elite
![]() |
Ja und ja.
Der Ordner gehört dem webserveruser und wenn ich ihn in den www-root der doamin schiebe, kann ich normal darauf zugreifen.
____________________________________
"reden 2 unsinn im wcm forum, meint der dritte is eh offtopic" (Gifty am 14. Apr 2002 um 22:47 in " WCM Rat & Tat Forum > Meinung > Guru, e-Zitate & Off Topic > Kommt ein Mann zum Arzt...") |
|
|
|
|
|
#7 |
|
Inventar
![]() |
hmm, bei mir funktioniert dieser Alias:
Code:
Alias /phpmyadmin "/var/www/phpMyAdmin/"
<Directory "/var/www/phpMyAdmin">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
teilweise anders. |
|
|
|
|
|
#8 |
|
Elite
![]() |
Vielen Dank, jetzt gehts bei mir auch!
____________________________________
"reden 2 unsinn im wcm forum, meint der dritte is eh offtopic" (Gifty am 14. Apr 2002 um 22:47 in " WCM Rat & Tat Forum > Meinung > Guru, e-Zitate & Off Topic > Kommt ein Mann zum Arzt...") |
|
|
|
![]() |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|