您好,登錄后才能下訂單哦!
Liferay中怎么配置SSL,很多新手對此不是很清楚,為了幫助大家解決這個難題,下面小編將為大家詳細講解,有這方面需求的人可以來學習下,希望你能有所收獲。
Dockerfile.
docker run -it -p 80:8080 -p 443:8443 -v $(pwd)/xyz123:/mnt/liferay liferay/portal:7.3.4-ga5.
alpine can not run root,so ports bellow 1024 have no permission to run.
cp /opt/liferay/tomcat/conf/server.xml /mnt/liferay/files/tomcat/conf/server.xml cp /opt/liferay/tomcat/webapps/ROOT/WEB-INF/web.xml /mnt/liferay/files/tomcat/webapps/ROOT/WEB-INF/web.xml
files in the host directory $(pwd)/xyz123/files are also available in the container directory /mnt/liferay/files and will be copied to /opt/liferay before Liferay Portal starts.
netstat -an | grep 443
lsof -i:80
lsof -i -P | grep -i "listen"
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true" scheme="https" secure="true" keystoreFile="/opt/liferay/tomcat/cert/3463152_jx.51redwing.net.pfx" keystoreType="PKCS12" keystorePass="證書密碼" clientAuth="false" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2" ciphers="TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256"/> <security-role> <role-name>users</role-name> </security-role> <security-constraint> <web-resource-collection> <web-resource-name>securedapp</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user-data-constraint> </security-constraint>
看完上述內容是否對您有幫助呢?如果還想對相關知識有進一步的了解或閱讀更多相關文章,請關注億速云行業資訊頻道,感謝您對億速云的支持。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。