Avatar billede charl8 Nybegynder
18. oktober 2001 - 11:30 Der er 6 kommentarer og
1 løsning

Redirect til underbibliotek

Hej

Jeg har min egen server herhjemme, og på den hoster jeg min egen website. Når man går ind på min webadresse, bliver man redirectet til den korrekte notesdatabase. Dette er sat op i PAB.

Nu har jeg en kunde, for hvem jeg gerne vil hoste hans website. Han er kunde hos TDC, og de kan kun redirecte til min site - ikke til det korrekte underbibliotek - altså selve databasen. Er der nogle, der kan sige mig, hvor jeg kan sætte en additional web-redirect op og hvordan??

Hvordan kan Notes finde ud af, om en bruger kommer ind på www.xx.dk, eller på www.xxxx.dk, hvis de begge henviser samme sted hen i sidste end??

Charlotte
Avatar billede roenving Novice
18. oktober 2001 - 11:51 #1
Fundet i Administrator help:

Redirecting and remapping URLs and directories 

You can keep database files, HTML files, CGI scripts, and other related Web files in multiple locations or move them to new locations without breaking URL links or changing Server and Virtual Server documents.
For example, if you have a Web application named mysite.nsf on a server www.acme.com and you want to move this application to the server www.abc.com, you can redirect all users to the application on www.abc.com when they access the application on www.acme.com.
Redirecting a URL displays the page in the new location and displays the URL in the location box for the user. Mapping a URL or directory displays the page in the new location and hides the URL from the user. You can redirect or map URLs or directories for servers that host a single site and for virtual servers that host multiple sites.
To redirect or remap a URL or directory, you create a Mapping/Redirection document in the Domino Directory. Domino displays the Mapping/Redirection document as a response to the Server document on the Configuration tab in the Web - Web Server Configurations view.
  1.    From the Domino Administrator, click the Configuration tab, choose Server, and open the Server document for the server on which you want to redirect or remap a URL or directory.
  2.    Click Web and choose Create URL Mapping/Redirection.
  3.    Click the Basics tab, and complete this field:
    Field    Enter
    What do you want to setup    Choose one:
        URL --> Directory to map a URL to a different directory so you can rename directories, move files, or store files on different drives without confusing users. Domino maps the URLs in the background, and does not display the mapped URL to the user.
        URL --> Redirection URL to map an incoming URL to another URL. Domino displays the redirected URL in the user\'s browser. Use this option to map a URL to a Domino-specific URL -- for example, to a page stored in Domino databases.
        URL --> URL to map an incoming URL to another URL so you can create alias names for long file names, rename directories, move groups of files, or store files on different drives without breaking external links or users\' bookmarks. Domino maps the URLs in the background, and does not display the mapped URL to the user.
        You cannot map pages stored in a Domino database to a different URL.
  4. Click the Site Information tab, and complete this field:
    Field    Enter
    IP Address    If you are creating a mapping for a virtual server, specify its unique IP address or host name for the site.
  5. Click the Mapping tab, and complete these fields:
    Field    Enter
    Incoming URL sring    The incoming URL path that you want to map to another directory or URL.
    Target server directory    The full path name of the directory or the name to which you want to map the incoming URL.
        For URL --> URL and URL --> Directory, the location to which you map must be on the same machine as the directory specified by the URL path.
  6. Click the Access tab, complete this field, and then save the document:
    Field    Enter
    Access level    If you selected URL --> Directory, specify the type of access you want users to have to the directory. Read allows browsers to read files in the directory. Execute allows browsers to execute programs from this directory.
        Set Read access for any directories that contain content files, such as HTML files and images. Do not set Execute access for these directories.
        Set Execute access only for directories that contain CGI scripts and other files that browsers can run. Do not set Read access for these directories; users don\'t need to see what these directories contain.
  7. Enter this command at the server console so that the settings take effect:
tell http restart
See \"Examples of redirecting or remapping URLs and directories.\"
See Also
Relocating Web URLs, directories, and files on a Web server

hth
jes
Avatar billede charl8 Nybegynder
18. oktober 2001 - 12:32 #2
Hmm..tak.

Jeg forstår bare stadigvæk ikke. Hvis TDC router www.xxx.dk til www.xxxx.dk, så tror min server jo, at det er en bruger, der er gået ind på www.xxxx.dk - altså min side. Jeg kan ikke se andet, end at det altid vil være min side, man havner på. Men nu må jeg jo forsøge.
Avatar billede roenving Novice
18. oktober 2001 - 12:38 #3
Jamen TDC router da på IP-adressen, og du kan få fat i den originale URL -- og den skulle Dominoen selv kunne redirecte efter.
Avatar billede charl8 Nybegynder
18. oktober 2001 - 16:43 #4
Ja, det var som jeg regnede med. Brugeren, der kommer ind på www.carmi.dk bliver nu - fordi TDC router til min hjemmeside - opfattet som en www.know..,dk bruger og ikke længere som en www.carmi.dk bruger. Derfor bliver man nu henvist til min hjemmeside, selv om jeg har sat redirector på serveren på www.carmi.dk.

Møg.

Har I flere forslag??
Avatar billede charl8 Nybegynder
18. oktober 2001 - 19:03 #5
OK - flere oplysninger. Når man går ind på www.carmi.dk kommer man nu til en site, der hedder www.carmi.dk/homepage.nsf. Her får man vist min homepage og ikke den, der skal vises.

Jeg har så lavet et redirect-dokument - Redirect URL --> URL, hvor jeg skriver adressen www.carmi.dk som Redirect URL - har også forsøgt med www.carmi.dk/homepage.nsf - og den nye URL til www.carmi.dk/web/carmi2.nsf - har også forsøgt med www.knowledgemanagement.dk/web/carmi2.nsf

Intet af dette virke. Det er som om, der slet ikke redirectes. Har også forsøgt med de andre muligheder - URL--> URL og URL --> Directory. Intet virker.

HJÆLP!!!
Avatar billede charl8 Nybegynder
19. oktober 2001 - 16:22 #6
nå, jeg har fået løst problemet. Det er ikke et redirect-dokument, der skal oprettes men derimod et \"virtuel server\"-dokument, så nu spiller det hele.

Men du får points alligevel som tak for hjælpen

:-)Charlotte
Avatar billede roenving Novice
20. oktober 2001 - 18:45 #7
Takker for points ;~}
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Computerworld tilbyder specialiserede kurser i database-management

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester