LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 809|回复: 2

f9更新到F10后,动态域名无法访问CUPS

[复制链接]
发表于 2009-4-28 13:45:46 | 显示全部楼层 |阅读模式
单位上的机子fedora9,已安装了apache、cups,花生壳,外网可用动态域名匿名使用本机CUPS上的打印机,使用一年多正常。前些天升级到F10后,apache正常,单位网站正常,但外网动态域名无法链接到CUPS(外网数字IP地址正常),其网页显示400 (Bad Request),查看错误如下,请高人帮助看一下。

D [28/Apr/2009:13:33:27 +0800] cupsdCloseClient: 15
D [28/Apr/2009:13:33:27 +0800] cupsdAcceptClient: skipping getpeercon()
D [28/Apr/2009:13:33:27 +0800] cupsdAcceptClient: 15 from 218.64.87.102:631 (IPv4)
D [28/Apr/2009:13:33:27 +0800] cupsdReadClient: 15 GET /cups.css HTTP/1.1
D [28/Apr/2009:13:33:27 +0800] cupsdAuthorize: No authentication data provided.
W [28/Apr/2009:13:33:27 +0800] Request from "218.64.87.102" using invalid Host: field "zhuoli76.vicp.net:631"
D [28/Apr/2009:13:33:27 +0800] cupsdSendError: 15 code=400 (Bad Request)
D [28/Apr/2009:13:33:27 +0800] cupsdCloseClient: 15
D [28/Apr/2009:13:33:30 +0800] cupsdAcceptClient: skipping getpeercon()
D [28/Apr/2009:13:33:30 +0800] cupsdAcceptClient: 15 from 218.64.87.102:631 (IPv4)
D [28/Apr/2009:13:33:30 +0800] cupsdReadClient: 15 GET /favicon.ico HTTP/1.1
D [28/Apr/2009:13:33:30 +0800] cupsdAuthorize: No authentication data provided.
 楼主| 发表于 2009-5-3 18:58:15 | 显示全部楼层
/etc/cups/cupsd.conf 内容如下:
----------------------------------
MaxLogSize 0
LogLevel debug
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  Allow all
  Allow all
  Allow all
  Allow all
  # Allow shared printing...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
  Encryption Required
  Allow all
  Allow all
  # Restrict access to the admin pages...
  Order allow,deny
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Allow all
  Allow all
  # Restrict access to the configuration files...
  Order allow,deny
</Location>
<olicy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-18 17:04:45 | 显示全部楼层
没人帮着看一下吗
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表