mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +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')
|
||||
|
||||
content = '''
|
||||
|
||||
context /.well-known/acme-challenge {
|
||||
location /usr/local/lsws/Example/html/.well-known/acme-challenge
|
||||
allowBrowse 1
|
||||
@@ -411,8 +412,6 @@ context /.well-known/acme-challenge {
|
||||
command = f'touch {CustomVerificationFile}'
|
||||
ProcessUtilities.normalExecutioner(command)
|
||||
|
||||
WWWStatus = 0
|
||||
NONWWWStatus = 0
|
||||
|
||||
URLFetchPathWWW = f'http://www.{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(
|
||||
f'Status Code: Unkown for: {URLFetchPathNONWWW}. Error: {str(msg)}')
|
||||
|
||||
WWWStatus = 1
|
||||
NONWWWStatus = 1
|
||||
|
||||
|
||||
try:
|
||||
acmePath = '/root/.acme.sh/acme.sh'
|
||||
|
||||
Reference in New Issue
Block a user