Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 11-11-2005, 06:09 AM   #1
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Rep: Reputation: 15
Question Wiki & Apache Virtual Hosts

I am trying to set up a Wiki server for an inhouse project and am having some problems with the addressing of the site (relative Linux newbie here)

We have a server called: listed in the DNS
we also have an alias listed.

I have apache on FC4 serving the default Apache page for both addresses

If I install the mediawiki software in: /var/www/html/wiki
then I can access it at:

However I would like to have the wiki software accessed from the route link of

I have tried to use system-config-httd to set up a name based Virtual Host, but have had little luck.

Any help?
Old 11-11-2005, 07:27 AM   #2
Registered: Sep 2005
Location: PARIS
Distribution: Mandriva 10.0 Communoty
Posts: 117

Rep: Reputation: 15
verify in httpd.conf, the line DIrectoryRoot.
for VH, it's simple, don't forget to add all VH name in your host file (or DNS)
Old 11-11-2005, 08:19 PM   #3
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
If you do some research on mod_rewrite, you can have all your requests to '' actually be addressing '', while the URL will still maintain ''.

If you add something like:

RewriteEngine on
RewriteRule /(.*) wiki/$1

to your .htaccess file located in /var/www/html/wiki

I'm not a pro at mod_rewrite, but I think the above is in the right direction.

Otherwise, I have my simplified apache virtualhosts notes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 & tomcat5 - how to configure VIRTUAL HOSTS & JSP? nicolasdiogo SUSE / openSUSE 2 04-05-2007 09:06 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
SuSE 9.2 - apache2 & tomcat5 - how to configure VIRTUAL HOSTS & JSP? nicolasdiogo Linux - Networking 2 03-20-2005 08:06 AM
Apache 2 & Multiple Virtual Hosts hegele Linux - Networking 4 02-21-2004 06:41 PM
Apache virtual hosts Mil0 Linux - Software 5 06-01-2003 11:58 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration