Apache reverse proxy to localhost doesn't workHow mod_cache working with “must-revalidate” and “max-age”?Offline reverse-proxy with NginxNginx load balancing redirects to upstream “name”Apache 2.4 & Phusion Passenger generating 403 ErrorWhy am I getting 400 Bad Request?Apache2 uses http instead of https, despite LetsEncryptCentos 7, Apache 2.4 log to /var/log/messageapache reading wrong virtualhost confApache Load Balancer 503 gateway errornginx reverse proxy to docker containers is timing out

How are one-time password generators like Google Authenticator different from having two passwords?

What's the "magic similar to the Knock spell" referenced in the Dungeon of the Mad Mage adventure?

date -d 'previous Monday" to display the preceding Monday

Is a vertical stabiliser needed for straight line flight in a glider?

Extending Kan fibrations, without using minimal fibrations

Which other programming languages apart from Python and predecessor are out there using indentation to define code blocks?

What is wrong with my code? RGB potentiometer

What is the name of meteoroids which hit Moon, Mars, or pretty much anything that isn’t the Earth?

How to handle DM constantly stealing everything from sleeping characters?

Was there a contingency plan in place if Little Boy failed to detonate?

Renting a house to a graduate student in my department

Is ‘despite that’ right?

My perfect evil overlord plan... or is it?

Is there an application which does HTTP PUT?

Would encrypting a database protect against a compromised admin account?

Examples where existence is harder than evaluation

When do you stop "pushing" a book?

How can I avoid subordinates and coworkers leaving work until the last minute, then having no time for revisions?

Is this state of Earth possible, after humans left for a million years?

Is there any evidence to support the claim that the United States was "suckered into WW1" by Zionists, made by Benjamin Freedman in his 1961 speech

Why are low spin tetrahedral complexes so rare?

Cryptography and elliptic curves

Why do Thanos' punches not kill Captain America or at least cause vital wounds?

What does this quote in Small Gods refer to?



Apache reverse proxy to localhost doesn't work


How mod_cache working with “must-revalidate” and “max-age”?Offline reverse-proxy with NginxNginx load balancing redirects to upstream “name”Apache 2.4 & Phusion Passenger generating 403 ErrorWhy am I getting 400 Bad Request?Apache2 uses http instead of https, despite LetsEncryptCentos 7, Apache 2.4 log to /var/log/messageapache reading wrong virtualhost confApache Load Balancer 503 gateway errornginx reverse proxy to docker containers is timing out






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I want to use the open source ELK stack. Kibana has no security at all in the free version. My Idea is, that I put Kibana behind an Apache reverse proxy using Apache's basic authentication, but somehow the reverse proxy doesn't work.



I have the only one site enabled, with the following content:



<VirtualHost *:80>
ServerName kibana2.softxs.ch
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://127.0.0.1:5601/ retry=0
ProxyPassReverse / http://127.0.0.1/
</VirtualHost>


Kibana is listening on port 5601:



$ netstat -lnp | grep 5601
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 16465/node


Apache is listening on port 80:



netstat -lnp | grep 80
tcp6 0 0 :::80 :::* LISTEN 21721/apache2


However if I'm using http://kibana2.softxs.ch, I get the Apache2 Ubuntu Default Page. I don't understand it, because there is no other file in site_enabled. There is no error message in apache log.



apachectl -S says:



VirtualHost configuration: 
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex watchdog-callback: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33


"/var/www/html" could come only from apache compile time. It is not defined anywhere, better said only in non-enabled virtual host:



/etc/apache2# grep -r '/var/www/html'
sites-available/000-default.conf: DocumentRoot /var/www/html
sites-available/default-ssl.conf: DocumentRoot /var/www/html


I see only simple entries in other_vhosts_access.log even if LogLevel debug proxy:trace5 is added to the VirtualHost config:



zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET / HTTP/1.1" 200 3525 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 304 180 "http://kibana2.softxs.ch/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"









share|improve this question
























  • Try to add LogLevel debug proxy:trace5 into VirtualHost and see what is written to logs when you open a page. If issue is not clear from log, please post it here. This will help to debug.

    – Vladimir
    Apr 30 at 18:38











  • BTW, X-Pack was opensourced in elasticseach version 6.3. So you might consider using native features of kibana now.

    – Vladimir
    Apr 30 at 18:54











  • What does apachectl -S say?

    – Lacek
    May 3 at 8:54











  • @Lacek I added the output to the question.

    – Tibor Nagy
    May 3 at 15:21











  • @Vladimir I added the log output above to the question, nothing special.

    – Tibor Nagy
    May 3 at 15:32

















0















I want to use the open source ELK stack. Kibana has no security at all in the free version. My Idea is, that I put Kibana behind an Apache reverse proxy using Apache's basic authentication, but somehow the reverse proxy doesn't work.



I have the only one site enabled, with the following content:



<VirtualHost *:80>
ServerName kibana2.softxs.ch
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://127.0.0.1:5601/ retry=0
ProxyPassReverse / http://127.0.0.1/
</VirtualHost>


Kibana is listening on port 5601:



$ netstat -lnp | grep 5601
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 16465/node


Apache is listening on port 80:



netstat -lnp | grep 80
tcp6 0 0 :::80 :::* LISTEN 21721/apache2


However if I'm using http://kibana2.softxs.ch, I get the Apache2 Ubuntu Default Page. I don't understand it, because there is no other file in site_enabled. There is no error message in apache log.



apachectl -S says:



VirtualHost configuration: 
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex watchdog-callback: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33


"/var/www/html" could come only from apache compile time. It is not defined anywhere, better said only in non-enabled virtual host:



/etc/apache2# grep -r '/var/www/html'
sites-available/000-default.conf: DocumentRoot /var/www/html
sites-available/default-ssl.conf: DocumentRoot /var/www/html


I see only simple entries in other_vhosts_access.log even if LogLevel debug proxy:trace5 is added to the VirtualHost config:



zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET / HTTP/1.1" 200 3525 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 304 180 "http://kibana2.softxs.ch/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"









share|improve this question
























  • Try to add LogLevel debug proxy:trace5 into VirtualHost and see what is written to logs when you open a page. If issue is not clear from log, please post it here. This will help to debug.

    – Vladimir
    Apr 30 at 18:38











  • BTW, X-Pack was opensourced in elasticseach version 6.3. So you might consider using native features of kibana now.

    – Vladimir
    Apr 30 at 18:54











  • What does apachectl -S say?

    – Lacek
    May 3 at 8:54











  • @Lacek I added the output to the question.

    – Tibor Nagy
    May 3 at 15:21











  • @Vladimir I added the log output above to the question, nothing special.

    – Tibor Nagy
    May 3 at 15:32













0












0








0








I want to use the open source ELK stack. Kibana has no security at all in the free version. My Idea is, that I put Kibana behind an Apache reverse proxy using Apache's basic authentication, but somehow the reverse proxy doesn't work.



I have the only one site enabled, with the following content:



<VirtualHost *:80>
ServerName kibana2.softxs.ch
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://127.0.0.1:5601/ retry=0
ProxyPassReverse / http://127.0.0.1/
</VirtualHost>


Kibana is listening on port 5601:



$ netstat -lnp | grep 5601
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 16465/node


Apache is listening on port 80:



netstat -lnp | grep 80
tcp6 0 0 :::80 :::* LISTEN 21721/apache2


However if I'm using http://kibana2.softxs.ch, I get the Apache2 Ubuntu Default Page. I don't understand it, because there is no other file in site_enabled. There is no error message in apache log.



apachectl -S says:



VirtualHost configuration: 
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex watchdog-callback: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33


"/var/www/html" could come only from apache compile time. It is not defined anywhere, better said only in non-enabled virtual host:



/etc/apache2# grep -r '/var/www/html'
sites-available/000-default.conf: DocumentRoot /var/www/html
sites-available/default-ssl.conf: DocumentRoot /var/www/html


I see only simple entries in other_vhosts_access.log even if LogLevel debug proxy:trace5 is added to the VirtualHost config:



zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET / HTTP/1.1" 200 3525 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 304 180 "http://kibana2.softxs.ch/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"









share|improve this question
















I want to use the open source ELK stack. Kibana has no security at all in the free version. My Idea is, that I put Kibana behind an Apache reverse proxy using Apache's basic authentication, but somehow the reverse proxy doesn't work.



I have the only one site enabled, with the following content:



<VirtualHost *:80>
ServerName kibana2.softxs.ch
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://127.0.0.1:5601/ retry=0
ProxyPassReverse / http://127.0.0.1/
</VirtualHost>


Kibana is listening on port 5601:



$ netstat -lnp | grep 5601
tcp 0 0 127.0.0.1:5601 0.0.0.0:* LISTEN 16465/node


Apache is listening on port 80:



netstat -lnp | grep 80
tcp6 0 0 :::80 :::* LISTEN 21721/apache2


However if I'm using http://kibana2.softxs.ch, I get the Apache2 Ubuntu Default Page. I don't understand it, because there is no other file in site_enabled. There is no error message in apache log.



apachectl -S says:



VirtualHost configuration: 
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/lock/apache2" mechanism=fcntl
Mutex watchdog-callback: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33


"/var/www/html" could come only from apache compile time. It is not defined anywhere, better said only in non-enabled virtual host:



/etc/apache2# grep -r '/var/www/html'
sites-available/000-default.conf: DocumentRoot /var/www/html
sites-available/default-ssl.conf: DocumentRoot /var/www/html


I see only simple entries in other_vhosts_access.log even if LogLevel debug proxy:trace5 is added to the VirtualHost config:



zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET / HTTP/1.1" 200 3525 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"
zg-3.softxs.ch:80 188.143.71.45 - - [03/May/2019:17:26:31 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 304 180 "http://kibana2.softxs.ch/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36"






apache-2.4 reverse-proxy kibana






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 3 at 15:30







Tibor Nagy

















asked Apr 30 at 17:07









Tibor NagyTibor Nagy

1074




1074












  • Try to add LogLevel debug proxy:trace5 into VirtualHost and see what is written to logs when you open a page. If issue is not clear from log, please post it here. This will help to debug.

    – Vladimir
    Apr 30 at 18:38











  • BTW, X-Pack was opensourced in elasticseach version 6.3. So you might consider using native features of kibana now.

    – Vladimir
    Apr 30 at 18:54











  • What does apachectl -S say?

    – Lacek
    May 3 at 8:54











  • @Lacek I added the output to the question.

    – Tibor Nagy
    May 3 at 15:21











  • @Vladimir I added the log output above to the question, nothing special.

    – Tibor Nagy
    May 3 at 15:32

















  • Try to add LogLevel debug proxy:trace5 into VirtualHost and see what is written to logs when you open a page. If issue is not clear from log, please post it here. This will help to debug.

    – Vladimir
    Apr 30 at 18:38











  • BTW, X-Pack was opensourced in elasticseach version 6.3. So you might consider using native features of kibana now.

    – Vladimir
    Apr 30 at 18:54











  • What does apachectl -S say?

    – Lacek
    May 3 at 8:54











  • @Lacek I added the output to the question.

    – Tibor Nagy
    May 3 at 15:21











  • @Vladimir I added the log output above to the question, nothing special.

    – Tibor Nagy
    May 3 at 15:32
















Try to add LogLevel debug proxy:trace5 into VirtualHost and see what is written to logs when you open a page. If issue is not clear from log, please post it here. This will help to debug.

– Vladimir
Apr 30 at 18:38





Try to add LogLevel debug proxy:trace5 into VirtualHost and see what is written to logs when you open a page. If issue is not clear from log, please post it here. This will help to debug.

– Vladimir
Apr 30 at 18:38













BTW, X-Pack was opensourced in elasticseach version 6.3. So you might consider using native features of kibana now.

– Vladimir
Apr 30 at 18:54





BTW, X-Pack was opensourced in elasticseach version 6.3. So you might consider using native features of kibana now.

– Vladimir
Apr 30 at 18:54













What does apachectl -S say?

– Lacek
May 3 at 8:54





What does apachectl -S say?

– Lacek
May 3 at 8:54













@Lacek I added the output to the question.

– Tibor Nagy
May 3 at 15:21





@Lacek I added the output to the question.

– Tibor Nagy
May 3 at 15:21













@Vladimir I added the log output above to the question, nothing special.

– Tibor Nagy
May 3 at 15:32





@Vladimir I added the log output above to the question, nothing special.

– Tibor Nagy
May 3 at 15:32










1 Answer
1






active

oldest

votes


















0














The problem was quite trivial. In /etc/apache2/apache2.conf the following lines includes the virtual host configuration:



IncludeOptional sites-enabled/*.conf


But my virtual host config hasn't .conf extension. I added it and it works perfectly.






share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "2"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965302%2fapache-reverse-proxy-to-localhost-doesnt-work%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The problem was quite trivial. In /etc/apache2/apache2.conf the following lines includes the virtual host configuration:



    IncludeOptional sites-enabled/*.conf


    But my virtual host config hasn't .conf extension. I added it and it works perfectly.






    share|improve this answer



























      0














      The problem was quite trivial. In /etc/apache2/apache2.conf the following lines includes the virtual host configuration:



      IncludeOptional sites-enabled/*.conf


      But my virtual host config hasn't .conf extension. I added it and it works perfectly.






      share|improve this answer

























        0












        0








        0







        The problem was quite trivial. In /etc/apache2/apache2.conf the following lines includes the virtual host configuration:



        IncludeOptional sites-enabled/*.conf


        But my virtual host config hasn't .conf extension. I added it and it works perfectly.






        share|improve this answer













        The problem was quite trivial. In /etc/apache2/apache2.conf the following lines includes the virtual host configuration:



        IncludeOptional sites-enabled/*.conf


        But my virtual host config hasn't .conf extension. I added it and it works perfectly.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 3 at 15:47









        Tibor NagyTibor Nagy

        1074




        1074



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Server Fault!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f965302%2fapache-reverse-proxy-to-localhost-doesnt-work%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company