引用:
原帖由 Roc.Ken 于 2007-7-22 18:58 发表 
1, 用 netstat -lnpt 看看是不是有程序把80端口占用了.
2, 可能是 /mono 这些文件夹的权限限不对? 去掉 include 把 mono.conf的内容添加到 AddMonoApplications 前试试.
我用 netstat -lnpt 得出下面的结果
root@ubuntu:/home/stone# netstat -lnpt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 6862/httpd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 5443/apache2
可是还是有错误提示:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
我改了端口为8080
下面是我的httpd.conf文件内容(我把include去掉了,把mod_mono.conf加进去了,没出错,可能是权限问题):
由于发帖限制,我把注释语句去掉了,蝈蝈帮我看一下
ServerRoot "/usr/local/apache2"
#Listen 12.34.56.78:8080
Listen 8080
<IfModule !mpm_netware_module>
User daemon
Group daemon
</IfModule>
ServerAdmin
you@example.com
#ServerName 127.0.1.1:8080
DocumentRoot "/usr/local/apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog logs/error_log
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
<IfModule !mod_mono.c>
LoadModule mono_module /usr/local/apache2/modules/mod_mono.so
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx
</IfModule>
Alias /test "/usr/lib/xsp/test"
AddMonoApplications default "/test:/usr/lib/xsp/test"
<Location /test>
SetHandler mono
AllowOverride None
Order allow,deny
Allow from all
</Location>
[
本帖最后由 sitademail 于 2007-7-22 22:20 编辑 ]