トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS   ログイン

コンピュータ系/ソフトウェア/CUPS/サーバ設定 の変更点

-例
--ネットワーク
---192.168.0.0/25
--サーバ名(サーバのFQDN)
---test.csse.muroran-it.ac.jp
-ssl証明書を作成
--openssl req -new -nodes -x509 -keyout /etc/cups/ssl/server.key -out /etc/cups/ssl/server.crt -days 3650
---サーバの名前以外はとりあえずてきとー
---サーバ名(Your Name):hostname.domain....(サーバのFQDN)
---サーバ名(Your Name):test.csse.muroran-it.ac.jp
-[[設定ファイル>../設定/ファイル/cupsd.conf]]の編集
--既存のListenをコメントアウト
--Listen *:631
--BrowseAddress 157.19.183.127
--ServerAlias hostname.domain....(サーバのFQDN)
--<Location /></Location>内
--既存の[[Listen>../設定/ファイル/cupsd.conf#listen]]をコメントアウト
--[[Listen>../設定/ファイル/cupsd.conf#listen]] *:631
--[[BrowseAddress>../設定/ファイル/cupsd.conf#browseaddress]] 192.168.0.127
--[[ServerAlias>../設定/ファイル/cupsd.conf#serveralias]] test.csse.muroran-it.ac.jp
--[[&lt;Location /&gt;>../設定/ファイル/cupsd.conf#location]]〜[[&lt;/Location&gt;>../設定/ファイル/cupsd.conf#location]]内
---とりあえず全部コメントアウト
---Order deny,allow
---Deny all
---Allow 157.19.183.0/25
--<Location /admin>や<Location /admin/conf>を<Location />と同じにしておく
---[[Order>../設定/ファイル/cupsd.conf#order]] deny,allow
---[[Deny>../設定/ファイル/cupsd.conf#allow_deny]] all
---[[Allow>../設定/ファイル/cupsd.conf#allow_deny]] 192.168.0.0/25
--[[&lt;Location /admin&gt;>../設定/ファイル/cupsd.conf#location]]や[[&lt;Location /admin/conf&gt;>../設定/ファイル/cupsd.conf#location]]を[[&lt;Location /&gt;>../設定/ファイル/cupsd.conf#location]]と同じにしておく
---EncryptionとAuthType, Require userはそのままでいいや
---と思ったけど,全部コメントアウト
--最後の行に以下を追加
---ServerCertificate /etc/cups/ssl/server.crt
---ServerKey /etc/cups/ssl/server.key
---[[ServerCertificate>../設定/ファイル/cupsd.conf#servercertificate]] /etc/cups/ssl/server.crt
---[[ServerKey>../設定/ファイル/cupsd.conf#serverkey]] /etc/cups/ssl/server.key