[Discuss] Having trouble browsing a backed-up MediaWiki (PHP)
site.
Lionel Widdifield
lwiddif-vlug at nexus.spydernet.com
Tue Sep 26 16:34:59 PDT 2006
On Tue, Sep 26, 2006 at 02:42:00PM -0700, Alan W. Irwin wrote:
> Since I got no response to my first detailed question I will boil this down
> to something which I hope is really simple enough for the apache and PHP
> gurus here to answer; how do I set up apache on my local machine so that I
> get the same browsing experience for downloaded (with wget) files like
> /home/irwin/public_html/plplot_wiki/index.php?title=Main_Page (viewed with a
> browser as the URL
> http://localhost/~irwin/plplot_wiki/index.php?title=Main_Page) as I do for
> the original PHP-generated pages like
> http://www.miscdebris.net/plplot_wiki/index.php?title=Main_Page
1) these pages are preprocessed so ALL the internal references are broken.
<location> will take care of the relative links
~irwin/plplot_wiki/
I'ld go one step further and use location:/plplot_wiki/ --> plplot directory
2) Apache will use mimetypes to determine from the file extension that these
pages are "what"
PATH=~irwin/plplot_wiki
FILE=index.php
QUERY=title=Main_Page
Apache needs to tell the browser (Content-type: text/html) that the
retrieved data is actually not raw data.
If you're using mod_php, then it will issue the correct header line, else
you're going to have to equate .php to text/html.
--
Lionel Widdifield [] Spydernet Resources
[] P.O. Box 5412
lwiddif-sig at spydernet.com [] Victoria BC, Canada V8R 6S4
More information about the Discuss
mailing list