我对apache和CentOS有一个荒谬的问题,网络服务器在默认模式下工作,当转到http://myip我正确查看了apache测试页面。如果添加`/etc/httpd/conf.d/foo.conf
<VirtualHost *:80>
ServerName foo.local
DocumentRoot "/home/foo/html"
ErrorLog /var/log/httpd/foo.local-error.log
<Directory "/home/foo/html">
Options Includes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
我有403禁止所有目录配置为apache,我没有看到测试页面。
目录/home/foo/html
拥有所有者和组apache
,目录权限775和文件664。我在日志中看到:
AH00035: access to / denied (filesystem path '/home/foo/html') because search permissions are missing on a component of the path
如果我取消此conf文件,apache可以工作并查看测试页
答案 0 :(得分:0)
我已经决定改变路径,而是 button_press++;
for (int i = 0; i < button_press; i++)
{
Debug.WriteLine("Hello");
Label book_number = new Label();
book_number.Text = "Book Number";
book_number.Style["Position"] = "Relative";
book_number.Style["Top"] = "0px";
book_number.Style["Left"] = "0px";
TextBox textBox_book_number = new TextBox();
textBox_book_number.Style["Position"] = "Relative";
textBox_book_number.Style["Top"] = "0px";
textBox_book_number.Style["Left"] = "10px";
Label amount = new Label();
amount.Text = "Amount";
amount.Style["Position"] = "Relative";
amount.Style["Top"] = "0px";
amount.Style["Left"] = "30px";
TextBox textBox_amount = new TextBox();
textBox_amount.Style["Position"] = "Relative";
textBox_amount.Style["Top"] = "0px";
textBox_amount.Style["Left"] = "45px";
form1.Controls.Add(book_number);
form1.Controls.Add(textBox_book_number);
form1.Controls.Add(amount);
form1.Controls.Add(textBox_amount);
form1.Controls.Add(new LiteralControl("<br />"));
}
我放/home/foo/html
并且工作