api.krishit.com

 [Mon Jun 17 19:01:17.310887 2024] [proxy:error] [pid 993] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed

[Mon Jun 17 19:01:17.310973 2024] [proxy_http:error] [pid 993] [client 59.144.167.12:60358] AH01114: HTTP: failed to make connection to backend: localhost

[Mon Jun 17 19:01:17.311067 2024] [proxy:error] [pid 993] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed

[Mon Jun 17 19:01:17.311102 2024] [proxy_http:error] [pid 993] [client 59.144.167.12:60358] AH01114: HTTP: failed to make connection to backend: localhost

[Mon Jun 17 19:01:17.715945 2024] [proxy:error] [pid 1997] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed

[Mon Jun 17 19:01:17.719780 2024] [proxy_http:error] [pid 1997] [client 59.144.167.12:60359] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://api.krishit.com/

[Mon Jun 17 19:01:17.720097 2024] [proxy:error] [pid 1997] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed

[Mon Jun 17 19:01:17.720121 2024] [proxy_http:error] [pid 1997] [client 59.144.167.12:60359] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://api.krishit.com/

[Mon Jun 17 19:01:18.781765 2024] [proxy:error] [pid 1998] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed

[Mon Jun 17 19:01:18.781860 2024] [proxy_http:error] [pid 1998] [client 59.144.167.12:60362] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://api.krishit.com/

[Mon Jun 17 19:01:18.781965 2024] [proxy:error] [pid 1998] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:5000 (localhost) failed

[Mon Jun 17 19:01:18.782021 2024] [proxy_http:error] [pid 1998] [client 59.144.167.12:60362] AH01114: HTTP: failed to make connection to backend: localhost, referer: https://api.krishit.com/






<VirtualHost 192.227.112.108:443>


    ServerName api.krishit.com

#Header add Access-Control-Allow-Origin *;

      ProxyPreserveHost On

      ProxyPass / http://localhost:5000/

      ProxyPassReverse / http://localhost:5000/

    ServerAlias www.api.krishit.com

    ServerAdmin info@api.krishit.com

    DocumentRoot /home/api.krishit/web/api.krishit.com/public_html

    ScriptAlias /cgi-bin/ /home/api.krishit/web/api.krishit.com/cgi-bin/

    Alias /vstats/ /home/api.krishit/web/api.krishit.com/stats/

    Alias /error/ /home/api.krishit/web/api.krishit.com/document_errors/

    #SuexecUserGroup api.krishit api.krishit

    CustomLog /var/log/apache2/domains/api.krishit.com.bytes bytes

    CustomLog /var/log/apache2/domains/api.krishit.com.log combined

    ErrorLog /var/log/apache2/domains/api.krishit.com.error.log

    <Directory /home/api.krishit/web/api.krishit.com/public_html>

        AllowOverride All

        SSLRequireSSL

        Options +Includes -Indexes +ExecCGI

        php_admin_value open_basedir /home/api.krishit/web/api.krishit.com/public_html:/home/api.krishit/tmp

        php_admin_value upload_tmp_dir /home/api.krishit/tmp

        php_admin_value session.save_path /home/api.krishit/tmp

    </Directory>

    <Directory /home/api.krishit/web/api.krishit.com/stats>

        AllowOverride All

    </Directory>

    SSLEngine on

    SSLVerifyClient none

    SSLCertificateFile /home/api.krishit/conf/web/ssl.api.krishit.com.crt

    SSLCertificateKeyFile /home/api.krishit/conf/web/ssl.api.krishit.com.key

    SSLCertificateChainFile /home/api.krishit/conf/web/ssl.api.krishit.com.ca


    <IfModule mod_ruid2.c>

        RMode config

        RUidGid api.krishit api.krishit

        RGroups www-data

    </IfModule>

    <IfModule itk.c>

        AssignUserID api.krishit api.krishit

    </IfModule>


    IncludeOptional /home/api.krishit/conf/web/sapache2.api.krishit.com.conf*


</VirtualHost>




For API we created another subdomain and install ssl and then proxy pass using above code


https://api.krishit.com/admin/getOverAllEmployeeRecords


through postman he checked






/home/hrms.krishit/web/hrms.krishit.com/public_html/HRMS-Server



node app.js


https://api.krishit.com/


in web browser we should get Cannot GET /


Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation