plesk vhosts datei - zum xten mal :/

Plesk, Confixx, Froxlor, SysCP, SeCoTo, IspCP, etc.
Post Reply
paris
Posts: 29
Joined: 2005-12-14 17:09

plesk vhosts datei - zum xten mal :/

Post by paris »

hi, sorry ich weiß das thema gabs hier jetzt schon nen paar mal ich hab auch nur eine frage mir is klar das wenn ich eine bestimmte domain in einen unterordner eines schon bestehenden hostings verweisen will ich die jeweilige vhosts.conf anpassen bzw. anlegen muss.

jetzt meine frage was muss ich in die vhosts.conf schreiben damit ich:
example1.com nach
example2.de/hosted_sites/example1/
verweisen lassen kann UND trotzdem die domain example1.com oben als URL stehen bleibt.
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
Contact:

Re: plesk vhosts datei - zum xten mal :/

Post by daemotron »

Code: Select all

DocumentRoot /home/httpd/vhosts/example2.com/httpdocs/hosted_sites/example1
Dahinter musst Du dann noch die Directory-spezifischen Konfigurationsangaben hängen:

Code: Select all

<Directory /home/httpd/vhosts/example2.com/httpdocs/hosted_sites/example1>
  ...
  # Konfigurationsangaben für CGI, Perl, PHP etc...
  # -> siehe httpd.include
  ...
</Directory>
Wenn Du den <Directory>-Part weglässt, müssten die Einstellungen der Domain example2.com gelten... weiß aber nicht genau, ob der Indianer das dann versteht, weil die <Directory>-spezifischen Konfigurationsanweisungen außerhalb des betreffenden VHosts stehen. Jemand ne Idee, wie das genau ist?
paris
Posts: 29
Joined: 2005-12-14 17:09

Re: plesk vhosts datei - zum xten mal :/

Post by paris »

sorry aber ich hab deinen ansatz nicht 100% erstanden WO lege ich die vhosts datei an und MIT WELCHEN inhalt ?
killerboy
Posts: 24
Joined: 2005-11-10 13:25

Re: plesk vhosts datei - zum xten mal :/

Post by killerboy »

Hi,

vhost.conf enthält

Code: Select all

DocumentRoot /home/httpd/vhosts/example2.com/httpdocs/hosted_sites/example1

<Directory /home/httpd/vhosts/example2.com/httpdocs/hosted_sites/example1>
  ...
  # Konfigurationsangaben für CGI, Perl, PHP etc...
  # -> siehe httpd.include
  ...
</Directory>
...und wird abgelegt unter /home/httpd/vhosts/example2.com/conf, dann machst Du noch ein /usr/local/psa/admin/sbin/websrvmng -a -r -v (schau wo websrvmng liegt) und danach den httpd neu starten.
Post Reply