杨杨杨
杨杨杨
3272 3 0

关于youbbs本地安装

不知道有没有同学本地安装youbbs时会不会出现如下状况:

0

See Also

Nearby


Discussion (3)

杨杨杨
杨杨杨 2012-12-22 12:18

Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.

Error 404

localhost
12/22/12 20:06:10
Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1

原因是你没有把youbbs直接安装在htdoc文件夹上,也就是说你要把youbbs文件夹上的东西全复制出来到htdoc里。

0
ego008
ego008 2012-12-23 03:06

@杨杨杨 可以在本地环境配置一个虚拟主机,如
修改host 把sae.youbbs.com 指向127.0.0.1
修改Apache配置,添加虚拟主机信息,类似:

<VirtualHost :80>
ServerName sae.youbbs.com
DocumentRoot "D:/sae/wwwroot/youbbs/1"
<Directory "D:/sae/wwwroot/youbbs/1">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.shtml index.aspx default.aspx
AllowOverride all
Order Deny,Allow
Allow from all
php_admin_value open_basedir "D:/sae/wwwroot/youbbs/1/;C:/APMServ/tmp/uploadtemp/;"
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .
- [F]
php_admin_value safe_mode On
</Directory>
</VirtualHost>

0
ego008
ego008 2012-12-23 03:07

我用 APMServ 还能支持rewrite、Memcached

0
Login Topics