vhost mal wieder :(

Alles, was den Apache betrifft, kann hier besprochen werden.

vhost mal wieder :(

Postby H0MER » 27. February 2004 12:50

hi leute ...
auch auf die gefahr hin das ich euch nerve mit dieser frage ...
aber ich bekomme das einfach nicht hin ..

ich habe alles so gemacht wie es hier im forum steht ( glaube ich zumindest) aber es will einfach nicht hinhaun!

ich habe 2 dyndns accounts!
den ersten möchte ich auf den normalen htdocs ordner leiten!
den zweiten auf einen unterordner im htdocs ordner ...
wenn ich jetzt alles so mache wie hier beschrieben lande ich auch bei der zweiten adresse im normalen htdocs ordner!
ich habe echt langsam keine ahnung mehr woran es liegen könnte ...
hier mal meine vhost einstellung ( habe einfach mal die einstellungen die hier gepostet wurden auf meine bedingungen umgeändert):


Code: Select all
NameVirtualHost dyndnsname2:80

<VirtualHost dyndnsname2:80>
ServerName dyndnsname2
ServerAlias dyndnsname2
DocumentRoot /wampp1/htdocs/dyndnsname2
<Directory /wampp1/htdocs/dyndnsname2>
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
CustomLog /wampp1/htdocs/dyndnsname2/log/access.log combined
ErrorLog /wampp1/htdocs/dyndnsname2/log/error.log
Redirect permanent /phpmyadmin http://dyndnsname2/phpmyadmin/
</VirtualHost>


danke schon mal im vorraus ..
ach ja .. ich bentze noch den wampp1 wie ihr sicherlich schon gesehen habt!

mfg
H0MER
H0MER
 
Posts: 53
Joined: 11. June 2003 17:30

Postby Toralf » 27. February 2004 17:36

Code: Select all
NameVirtualHost *

<VirtualHost you.dyndns.org:80>
ServerName dyndnsname2
ServerAlias you.dyndns.org
DocumentRoot /wampp1/htdocs/dyndnsname2
<Directory /wampp1/htdocs/dyndnsname2>
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
CustomLog /wampp1/htdocs/dyndnsname2/log/access.log combined
ErrorLog /wampp1/htdocs/dyndnsname2/log/error.log
Redirect permanent /phpmyadmin http://you.dyndns.org/phpmyadmin/
</VirtualHost>

<VirtualHost you2.dyndns.org:80>
ServerName dyndnsname2
ServerAlias you2.dyndns.org
DocumentRoot /wampp1/htdocs
<Directory /wampp1/htdocs>
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
CustomLog /wampp1/htdocs/log/access.log combined
ErrorLog /wampp1/htdocs/log/error.log
Redirect permanent /phpmyadmin http://you2.dyndns.org/phpmyadmin/
</VirtualHost>
Toralf
 
Posts: 33
Joined: 15. June 2003 18:27

Postby H0MER » 27. February 2004 19:24

hi .. danke für die antwort .. .ich werde jetzt mal schreiben was ich in die http.conf geschrieben habe:

Code: Select all
NameVirtualHost *

<VirtualHost niendorf.kicks-ass.org:80>
ServerName niendorf
ServerAlias niendorf.kicks-ass.org
DocumentRoot /wampp1/htdocs/niendorf
<Directory /wampp1/htdocs/niendorf>
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
CustomLog /wampp1/htdocs/niendorf/log/access.log combined
ErrorLog /wampp1/htdocs/niendorf/log/error.log
Redirect permanent /phpmyadmin http://niendorf.kicks-ass.org/phpmyadmin/
</VirtualHost>

<VirtualHost punisher.kicks-ass.org:80>
ServerName punisher
ServerAlias punisher.kicks-ass.org
DocumentRoot /wampp1/htdocs
<Directory /wampp1/htdocs>
Options Indexes FollowSymLinks MultiViews Includes
</Directory>
CustomLog /wampp1/logs/access.log combined
ErrorLog /wampp1/logs/error.log
Redirect permanent /phpmyadmin http://punisher.kicks-ass.org/phpmyadmin/
</VirtualHost>


wenn ich das jetzt so ausführe bekomme ich diesen fehler:
[warn] VirtualHost niendorf.kicks-ass.org:80 overlaps with VirtualHost punisher.kicks-ass.org:80, the first has precedence, perhaps you need a NameVirtualHost directive

und wenn ich dann versuche auf einen der beiden urls zuzugreifen hängt sich der apache auf! :)

mfg
H0MER

/edit: hat es damit zu tun das der servername in der http.conf als punisher.kicks-ass.org festgelegt wurde?
H0MER
 
Posts: 53
Joined: 11. June 2003 17:30

Postby H0MER » 28. February 2004 09:52

ok .. danke leute .. hat sich erledigt !
habe es hinbekommen! :D
manchmal ist weniger einfach mehr!

mfg
H0MER
H0MER
 
Posts: 53
Joined: 11. June 2003 17:30


Return to Apache

Who is online

Users browsing this forum: No registered users and 27 guests