Running Ubuntu 8.04 (Desktop) with Apache2 installed from repositories. It was all set up using this HOWTO
, except I replaced the name of the blog directory, making it mydomain
rather than wordpress
. As a consequence, I have to go to http://www.mydomain.com/mydomain
in order to view the blog. What I want is to just be able to type in www.mydomain.com
and view the blog, without the subdirectory. I've set up a NameVirtualHost with the following configuration:
DirectoryIndex index.html index.php
Options Indexes FollowSymLinks MultiViews
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
but all that accomplishes is to give me an index page containing a link to the directory 'mydomain'.
I've tried simply placing the wordpress files and directory structure in www, but that jut makes all the php paths fail and everything on the page is broken. Surely I'm missing something simple here. I've tried creating a link named index.php targeted to the actual wordpress index file, which sort of works; I can type www.mydomain.com
into the address box, though apache still redirects to http://www.domain.com/domain
which looks kind of silly. There must be some way to accomplish this.