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:
Code:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/mydomain/
<Directory />
DirectoryIndex index.html index.php
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/mydomain/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
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.