This is a discussion on Newbie - trouble merging two trees within the Apache Web Server forums, part of the Web Server and Related Forums category; I'm running apache on suse linux. Apache sets up with all of its files in /usr/local/httpd SUSE ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm running apache on suse linux.
Apache sets up with all of its files in /usr/local/httpd SUSE sets up all of its help files in /usr/share/doc I can't seem to configure Apache to find the files in /usr/share/doc. I want to maintain the /usr/local/httpd structure, but access the SUSE stuff. For example: a link to: http://yoda.kitty.cat/doc/susehilf/index.html.en returns: Not Found The requested URL /doc/susehilf/index.html.en was not found on this server. How do I get Apache to find this file and other files it that tree? Thanks, -- Jim Sabatke Hire Me!! - See my resume at http://my.execpc.com/~jsabatke Do not meddle in the affairs of Dragons, for you are crunchy and good with ketchup. |
|
|||
|
Jim Sabatke <jsabatke@execpc.com> wrote:
> Apache sets up with all of its files in /usr/local/httpd > SUSE sets up all of its help files in /usr/share/doc > I can't seem to configure Apache to find the files in > /usr/share/doc. Make a symlink in the /usr/local/httpd pointing to /usr/share/doc, be sure that /usr/share/doc is world-readable and world-executable (rwxr-xr-x). Davide |
|
|||
|
Davide Bianchi wrote:
> Jim Sabatke <jsabatke@execpc.com> wrote: > >>Apache sets up with all of its files in /usr/local/httpd >>SUSE sets up all of its help files in /usr/share/doc >>I can't seem to configure Apache to find the files in >>/usr/share/doc. > > > Make a symlink in the /usr/local/httpd pointing to /usr/share/doc, > be sure that /usr/share/doc is world-readable and world-executable > (rwxr-xr-x). > > Davide I had already tried that. The permissions look fine. I can't access anything there. -- Jim Sabatke Hire Me!! - See my resume at http://my.execpc.com/~jsabatke Do not meddle in the affairs of Dragons, for you are crunchy and good with ketchup. |
|
|||
|
Davide Bianchi wrote:
> Jim Sabatke <jsabatke@execpc.com> wrote: > >>I had already tried that. The permissions look fine. I >>can't access anything there. > > > Yea, well, if you have a symlink, you don't need to specify > the whole path in the URL. > > Davide OK, here is the code from /usr/local/httpd/htdocs/index.html: <p> Das SuSE Hilfesystem finden Sie (insofern installiert) hier: <a HREF="doc/susehilf/index.html.de">Deutsch</a> <a HREF="doc/susehilf/index.html.en">Englisch</a>. <p> Also, this link does not work, and it is under /usr/local/httpd/htdocs. the ./manual directory can't be found, it is readable. <h1> The Apache WWW Server </h1> <br> This page is an example only. The <a HREF="./manual/">documentation</a> for the Apache WWW server can be found here. <p> -- Jim Sabatke Hire Me!! - See my resume at http://my.execpc.com/~jsabatke Do not meddle in the affairs of Dragons, for you are crunchy and good with ketchup. |
|
|||
|
Jim Sabatke <jsabatke@execpc.com> wrote:
> Das SuSE Hilfesystem finden Sie (insofern installiert) hier: <a > HREF="doc/susehilf/index.html.de">Deutsch</a> <a > HREF="doc/susehilf/index.html.en">Englisch</a>. Supposing that your documents are in /usr/share/doc/something and that you have a symlink in /usr/local/httpd/htdocs that point to /usr/share/doc, your href should be: href="/something/index.html.de" Davide |
|
|||
|
Davide Bianchi wrote:
> Jim Sabatke <jsabatke@execpc.com> wrote: > >>Das SuSE Hilfesystem finden Sie (insofern installiert) hier: <a >>HREF="doc/susehilf/index.html.de">Deutsch</a> <a >>HREF="doc/susehilf/index.html.en">Englisch</a>. > > > Supposing that your documents are in /usr/share/doc/something and that > you have a symlink in /usr/local/httpd/htdocs that point to > /usr/share/doc, your href should be: > > href="/something/index.html.de" > > Davide I apologize if I'm being dense, and thank you for your help. That doesn't work either. Also a ref to /manual/index.html.en can't be found either, and /manual/ is in the /htdocs directory, with global xr permissions. There must be some setup issue. -- Jim Sabatke Hire Me!! - See my resume at http://my.execpc.com/~jsabatke Do not meddle in the affairs of Dragons, for you are crunchy and good with ketchup. |
|
|||
|
Jim Sabatke wrote:
> Davide Bianchi wrote: >> Jim Sabatke <jsabatke@execpc.com> wrote: >> >>>Das SuSE Hilfesystem finden Sie (insofern installiert) hier: <a >>>HREF="doc/susehilf/index.html.de">Deutsch</a> <a >>>HREF="doc/susehilf/index.html.en">Englisch</a>. >> >> >> Supposing that your documents are in /usr/share/doc/something and that >> you have a symlink in /usr/local/httpd/htdocs that point to >> /usr/share/doc, your href should be: >> >> href="/something/index.html.de" >> >> Davide > > I apologize if I'm being dense, and thank you for your help. > > That doesn't work either. > > Also a ref to /manual/index.html.en can't be found either, > and /manual/ is in the /htdocs directory, with global xr > permissions. forgive me for butting in, but doesn't apache serve the corresponding file "automagically" depending on the browser settings? i.e. browser with setting DE, will receive 'index.html.de' as 'index.html' browser with setting EN-us will receive 'index.html.en' as 'index.html' Am I missing something? -- Robi |