mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
attempt 1 to fix: https://github.com/usmannasir/cyberpanel/issues/1044
This commit is contained in:
@@ -91,6 +91,7 @@ class sslUtilities:
|
|||||||
WriteToFile = open(completePathToConfigFile, 'a')
|
WriteToFile = open(completePathToConfigFile, 'a')
|
||||||
|
|
||||||
content = '''
|
content = '''
|
||||||
|
|
||||||
context /.well-known/acme-challenge {
|
context /.well-known/acme-challenge {
|
||||||
location /usr/local/lsws/Example/html/.well-known/acme-challenge
|
location /usr/local/lsws/Example/html/.well-known/acme-challenge
|
||||||
allowBrowse 1
|
allowBrowse 1
|
||||||
@@ -411,8 +412,6 @@ context /.well-known/acme-challenge {
|
|||||||
command = f'touch {CustomVerificationFile}'
|
command = f'touch {CustomVerificationFile}'
|
||||||
ProcessUtilities.normalExecutioner(command)
|
ProcessUtilities.normalExecutioner(command)
|
||||||
|
|
||||||
WWWStatus = 0
|
|
||||||
NONWWWStatus = 0
|
|
||||||
|
|
||||||
URLFetchPathWWW = f'http://www.{virtualHostName}/.well-known/acme-challenge/{virtualHostName}'
|
URLFetchPathWWW = f'http://www.{virtualHostName}/.well-known/acme-challenge/{virtualHostName}'
|
||||||
URLFetchPathNONWWW = f'http://{virtualHostName}/.well-known/acme-challenge/{virtualHostName}'
|
URLFetchPathNONWWW = f'http://{virtualHostName}/.well-known/acme-challenge/{virtualHostName}'
|
||||||
@@ -441,6 +440,9 @@ context /.well-known/acme-challenge {
|
|||||||
logging.CyberCPLogFileWriter.writeToFile(
|
logging.CyberCPLogFileWriter.writeToFile(
|
||||||
f'Status Code: Unkown for: {URLFetchPathNONWWW}. Error: {str(msg)}')
|
f'Status Code: Unkown for: {URLFetchPathNONWWW}. Error: {str(msg)}')
|
||||||
|
|
||||||
|
WWWStatus = 1
|
||||||
|
NONWWWStatus = 1
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
acmePath = '/root/.acme.sh/acme.sh'
|
acmePath = '/root/.acme.sh/acme.sh'
|
||||||
|
|||||||
Reference in New Issue
Block a user