Toon posts:

[apache] www.host.nl --> www.host2.nl/scripts

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb een webserver waar ongeweer 60 domeinnamen op draaien. nu is www.globalminds.nl de domainnaam van de hosting provider. ook is er een mogelijk voor onze klanten om gebruik te maken van standaard scripts. deze worden geshared op http://scripts.globalminds.nl

Nu wil ik script.globalminds.nl bereikbaar wordt voor alle domeinnamen via http://www.domeinnaam.nl/scripts/ Dus http://www.domeinnaam.nl/scripts moet verwijzen naar script.globalminds.nl

waar kan ik dit instellen? ik neem aan in de config file. maar ik wil niet 60 keer een regel in hoeven typen voor elk domain voor een verwijzing.

wie kan mij op weg helpen, ik heb al bij apache zelf lopen kijken, maar ik zou niet weten waar ik moest zoeken.

Verwijderd

Onder unix doe je gewoon als root inloggen. De scripts directory voor alle users leesbaar maken en dan gewoon heel simpel ln -s /path/to/scripts /path/to/userdomein/scripts of precies andersom ik vergis me daar altijd in.

Verwijderd

Topicstarter
Op dinsdag 14 augustus 2001 12:47 schreef NewAgePerformance het volgende:
Onder unix doe je gewoon als root inloggen. De scripts directory voor alle users leesbaar maken en dan gewoon heel simpel ln -s /path/to/scripts /path/to/userdomein/scripts of precies andersom ik vergis me daar altijd in.
ja en dan zekers voor alle domeinnamen herhalen ?

Verwijderd

kan je niet werken met CNAME ofzo. Zelf weet ik er niet veel van, maar m'n DNS host (www.mydns.com) heeft zoiets in de help staan.
Canonical Name records (CNAMEs) act as aliases for the hostnames they are attached to. CNAMEs take on the web setting and MX record of their assigned hostname.

What are the advantages of CNAMEs?
CNAMEs are great timesavers. Instead of having to create multiple hostnames that contain the same information, you can create one hostname and then create and attach multiple CNAMEs to that hostname.

Let's say you want to create a number of hostnames with the same web presence as www.my-example.com. Instead of creating separate hostnames and setting up a web presence for each, you can create CNAMEs for my-example.com and attach them to the www.my-example.com hostname. Any changes you make to the www hostname will automatically change all the attached CNAMEs accordingly. This saves you the trouble of modifying many hostnames individually if, for example, your website address changed.

Do CNAMEs have to be attached to hostnames within the same domain?
CNAMEs can be attached to hostnames within the same domain but they don't have to be. For example, you can create the CNAME cname1.my-example.com and attach it to a hostname created from the same my-example.com domain: www.my-example.com. However, you can also create the CNAME cname2.my-example.com and attach it to a hostname of another domain such as www.mydomain.com or any other hostname on the Internet.

In each of these cases the CNAME that is created will act exactly like the hostname it is attached to. When entered as a website address the CNAME will direct visitors to the website address set for the hostname. And if there is an MX record set for the hostname, then email addressed to the CNAME will be delivered to the same mail server set for the hostname.
HTH
Thomas

Verwijderd

Topicstarter
Op dinsdag 14 augustus 2001 18:52 schreef Jppr het volgende:
kan je niet werken met CNAME ofzo. Zelf weet ik er niet veel van, maar m'n DNS host (www.mydns.com) heeft zoiets in de help staan.
[..]

HTH
Thomas
ik begrijp wat je bedoelt, maar dit zoek ik niet...

ondertussen heb ik gewoon in httpd.conf bij elk domein-config het volgende toegevoegd:
Alias /script/ "/home/scripts/"

dit werkt nu ook perfect, moest het wel 60 keer copieren, maar ja, doet het zekers...