Results 1 to 3 of 3

Thread: Help with Apache Reverse Proxy vhost

  1. #1

    Default Help with Apache Reverse Proxy vhost

    I have looked everywhere and have tried plenty but cannot get this right. PLEASE HELP!

    - I have a dotnet core2 kestral api application that listens on localhost:5000
    - I allow people to use api via apache on serverIP:17169
    - Im using SLES 12 with latest updates etc.

    I have this setup on CentOS, and it was easy - VERY easy.

    I had all the reverse proxy info in the vhost.conf and it all worked:
    config was
    Code:
    <VirtualHost *:17169>
        ProxyPreserveHost On
        ProxyPass / http://127.0.0.1:5000/
        ProxyPassReverse / http://127.0.0.1:5000/
        DocumentRoot "/path/to/doc/root"
        ServerName "server1"
        ServerAlias "server1"
    </VirtualHost>
    
    I understand that SUSE does things differently, where it splits up most things into .conf.
    I have enabled mod_proxy but when I run
    httpd -M
    I dont see the module listed

    Please can someone walk me through how I would set this up. My current vhost definition is

    Code:
    <VirtualHost *:17169>
        DocumentRoot "{{ document_root }}/{{ website_2 }}"
        ServerName "{{ website_2 }}"
        ServerAlias "{{ website_2 }}"
        ServerAdmin webmaster@dummy-host.example.com
        <IfModule mod_proxy.c>
        ProxyPass / http://127.0.0.1:5000/
        ProxyPassReverse / http://127.0.0.1:5000/
        </IfModule>    
        ErrorLog /var/log/apache2/{{ website_2 }}/error_log
        CustomLog /var/log/apache2/{{ website_2 }}/access_log vhost_combined
        <Directory "/path/to/doc/root">
        Require all granted
        </Directory>
    </VirtualHost>
    
    I have another :80 vhost website on the same server and its working.

    httpd -t says my syntax is OK

    I get the just of the differences with apache2 on SUSE but cannot get this right...

    Please please help

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: Help with Apache Reverse Proxy vhost

    The SLES forums are at

    https://forums.suse.com/forum.php

    Only openSUSE are discussed here because of differences.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: Help with Apache Reverse Proxy vhost

    No worries, thanks for the update.

    I figured it out with much swearing and coffee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •