小编Yuc*_*ang的帖子

Apache VirtualHost 403 Forbidden

我最近尝试用Apache设置测试服务器.该网站必须在域下运行www.mytest.com.我总是得到一个403 Forbidden错误.我在Ubuntu 10.10服务器版上.doc根目录在dir之下/var/www.以下是我的设置:

/ var/www的内容

ls -l /var/www/

total 12
drwxr-xr-x 2 root root 4096 2011-08-04 11:26 mytest.com
-rwxr-xr-x 1 root root 177 2011-07-25 16:10 index.html
Run Code Online (Sandbox Code Playgroud)

服务器上主机文件的内容(IP 192.168.2.5)

cat /etc/hosts

127.0.0.1 localhost 
127.0.1.1 americano
192.168.2.5 americano.mytest.com www.mytest.com

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Run Code Online (Sandbox Code Playgroud)

网站配置

<VirtualHost *>
ServerAdmin admin@mytest.com
ServerName www.mytest.com
ServerAlias mytest.com

DocumentRoot "/var/www/mytest.com"

ErrorLog /var/log/apache2/mytest-error_log
CustomLog /var/log/apache2/mytest-access_log …
Run Code Online (Sandbox Code Playgroud)

linux apache ubuntu virtualhost http-status-code-403

116
推荐指数
4
解决办法
18万
查看次数

如何在以前版本的iPhone OS上运行iAd集成的iPhone应用程序?

如标题所述,我将iAd集成到我的iPhone应用程序中.一切都在iPhone模拟器(iOS4)中运行良好.但是,当我尝试在我的iPhone(版本3.1.3)上安装它时,我收到一个错误:

  dyld: Library not loaded: /System/Library/Frameworks/iAd.framework/iAd
  Referenced from: /var/mobile/Applications/...
  Reason: image not found
Run Code Online (Sandbox Code Playgroud)

我已经将部署目标正确设置为v3.0,并将SDK基础设置为4.0.当我注释掉所有与iAd相关的代码时,应用程序安装没有问题.

必须有办法做到这一点,因为我下载了使用iAd的应用程序"showtimes"和"Yellow Pages".这两个应用程序在我的3.1.3手机上运行得非常好,我也可以看到iAd.

有人知道怎么做这个吗?

iphone ads iphone-sdk-3.0 ios4

5
推荐指数
1
解决办法
2540
查看次数