我希望我的托pipe的博客出现在特定的url下

我有我的网页设置在example.com下。 现在,通常外部托pipe的博客服务,如tumblr或posterous或wp将允许您在您的网站上托pipe您的博客,即example.com。 我想要的是,我的博客出现在example.com/b/下,等等。 因为我已经为example.comconfiguration了我的网页虚拟主机。 那么我怎么configuration我的apache网站呢?

这里是我现有的apache vhost:

ServerSignature Off ServerTokens Prod <VirtualHost *:80> ServerName example.com ServerAlias www.example.com ServerAdmin [email protected] DocumentRoot /opt/example/ <Directory /opt/example/> Options FollowSymLinks MultiViews Includes AddOutputFilter Includes html AddHandler mod_python .py PythonHandler mod_python.publisher PythonDebug Off DirectoryIndex index.py index.html </Directory> #Enable gzip for all content except images. SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary ... 

任何指针将不胜感激。

这可能取决于您使用的博客软件,但一般来说,您可以将博客安装置于/ opt / example / b下。 由于/ opt / example是example.com的docroot,因此example.com/b将为该docroot的/ b /目录下的任何内容提供服务。

您也可以将博客软件安装在完全不同的位置,并将以下内容添加到您的configuration中:

Alias /b/ "/path/to/blog/installation"

然后,当有人点击example.com/b时,他们将从/ path / to / blog / installation中获得内容