当前位置: 动力学知识库 > 问答 > 编程问答 >

linux - SKS Installation Issue

问题描述:

Upon installing SKS on CentOS 6 (with cPanel/WHM licensing), the keyserver page is shown on all of my subdomains so I cannot access anything else on the server.

The below code creates the SKS Key Server (adapted from: http://www.mikejonesey.co.uk/linux/setup-sks-on-centos):

- yum install sks

- create manually /home/tundratestingco/public_html/keys/srv/

- create manually /home/tundratestingco/public_html/keys/srv/sks/

- cd /home/tundratestingco/public_html/keys/srv/sks/

- sks build

- create manually /home/tundratestingco/public_html/keys/etc/

- create manually /home/tundratestingco/public_html/keys/etc/sks/

- cp /usr/share/doc/sks-1.1.5/sampleConfig/sksconf.typical /home/tundratestingco/public_html/keys/etc/sks/sksconf

- chown sks: /home/tundratestingco/public_html/keys/etc/sks

- chown sks: /home/tundratestingco/public_html/keys/srv/sks

- vi /home/tundratestingco/public_html/keys/etc/sks/sksconf

- edit details

- vi /etc/init.d/sks-db

- cp -r /usr/share/doc/sks-1.1.5/sampleWeb/HTML5 /home/tundratestingco/public_html/keys/srv/sks/web

- rm -rvf /home/tundratestingco/public_html/keys/srv/sks/web/*.orig

- chown -Rv sks: /home/tundratestingco/public_html/keys/srv/sks/web

- /etc/init.d/sks-db restart

- iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 11371

- sks db

- /etc/init.d/sks-db restart

- /etc/init.d/sks-recon restart

So the SKS Key Server works after doing this (uploads and searches keys using the web interface) except every subdomain I go to just shows the Key Server webpage.

What I am looking to achieve is to have all of my other subdomains accessible (e.g. cpanel., whm., etc.) and then only have the key server webpage shown on keys.tundratesting.co.uk - how would I go about achieving this?

分享给朋友:
您可能感兴趣的文章:
随机阅读: