Ubuntu 16.04 landscape keeps redirecting to wrong url












2














So I installed Landscape on an ubuntu 16.04 server.
The hostname of the server is: http://management.domain.com/



Everytime i try to access landscape by going to: http://management.domain.com/ It redirects me to: http://management/



The Landscape web interface is shown in my browser but if I click any button Landscape links back to: http://management.domain.com/ and Chrome or Edge start to complain about to many redirects.



When i look at the Vhost in apache it shows the right configuration for http://management.domain.com/



The root URL is set right too on the Landscape web interface. Does anyone know here how to prevent Landscape from redirecting http://management.domain.com/ to http://management/ ?



I couldn't find anything on the internet or forums. I also checked the docs of Landscape but i couldn't find anything.










share|improve this question






















  • Try to open your site in a new incognito window, if it working normal then you should flush the cache of your browser.
    – pa4080
    Apr 10 at 14:40










  • @pa4080 that doesn't work. I tried it with different browsers, but all te same problem
    – Stan Vanhoorn
    Apr 10 at 14:56










  • "root url" is set correctly in the UI? if so, do a sudo lsctl restart on the landscape server and let me know how it works for you.
    – dpb
    Apr 17 at 2:58












  • As you can see in the question I did set the root url to the right url. It just looks like it strips everything after the first dot.
    – Stan Vanhoorn
    Apr 17 at 9:18
















2














So I installed Landscape on an ubuntu 16.04 server.
The hostname of the server is: http://management.domain.com/



Everytime i try to access landscape by going to: http://management.domain.com/ It redirects me to: http://management/



The Landscape web interface is shown in my browser but if I click any button Landscape links back to: http://management.domain.com/ and Chrome or Edge start to complain about to many redirects.



When i look at the Vhost in apache it shows the right configuration for http://management.domain.com/



The root URL is set right too on the Landscape web interface. Does anyone know here how to prevent Landscape from redirecting http://management.domain.com/ to http://management/ ?



I couldn't find anything on the internet or forums. I also checked the docs of Landscape but i couldn't find anything.










share|improve this question






















  • Try to open your site in a new incognito window, if it working normal then you should flush the cache of your browser.
    – pa4080
    Apr 10 at 14:40










  • @pa4080 that doesn't work. I tried it with different browsers, but all te same problem
    – Stan Vanhoorn
    Apr 10 at 14:56










  • "root url" is set correctly in the UI? if so, do a sudo lsctl restart on the landscape server and let me know how it works for you.
    – dpb
    Apr 17 at 2:58












  • As you can see in the question I did set the root url to the right url. It just looks like it strips everything after the first dot.
    – Stan Vanhoorn
    Apr 17 at 9:18














2












2








2







So I installed Landscape on an ubuntu 16.04 server.
The hostname of the server is: http://management.domain.com/



Everytime i try to access landscape by going to: http://management.domain.com/ It redirects me to: http://management/



The Landscape web interface is shown in my browser but if I click any button Landscape links back to: http://management.domain.com/ and Chrome or Edge start to complain about to many redirects.



When i look at the Vhost in apache it shows the right configuration for http://management.domain.com/



The root URL is set right too on the Landscape web interface. Does anyone know here how to prevent Landscape from redirecting http://management.domain.com/ to http://management/ ?



I couldn't find anything on the internet or forums. I also checked the docs of Landscape but i couldn't find anything.










share|improve this question













So I installed Landscape on an ubuntu 16.04 server.
The hostname of the server is: http://management.domain.com/



Everytime i try to access landscape by going to: http://management.domain.com/ It redirects me to: http://management/



The Landscape web interface is shown in my browser but if I click any button Landscape links back to: http://management.domain.com/ and Chrome or Edge start to complain about to many redirects.



When i look at the Vhost in apache it shows the right configuration for http://management.domain.com/



The root URL is set right too on the Landscape web interface. Does anyone know here how to prevent Landscape from redirecting http://management.domain.com/ to http://management/ ?



I couldn't find anything on the internet or forums. I also checked the docs of Landscape but i couldn't find anything.







16.04 server apache2 landscape virtualhost






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 10 at 11:43









Stan Vanhoorn

1112




1112












  • Try to open your site in a new incognito window, if it working normal then you should flush the cache of your browser.
    – pa4080
    Apr 10 at 14:40










  • @pa4080 that doesn't work. I tried it with different browsers, but all te same problem
    – Stan Vanhoorn
    Apr 10 at 14:56










  • "root url" is set correctly in the UI? if so, do a sudo lsctl restart on the landscape server and let me know how it works for you.
    – dpb
    Apr 17 at 2:58












  • As you can see in the question I did set the root url to the right url. It just looks like it strips everything after the first dot.
    – Stan Vanhoorn
    Apr 17 at 9:18


















  • Try to open your site in a new incognito window, if it working normal then you should flush the cache of your browser.
    – pa4080
    Apr 10 at 14:40










  • @pa4080 that doesn't work. I tried it with different browsers, but all te same problem
    – Stan Vanhoorn
    Apr 10 at 14:56










  • "root url" is set correctly in the UI? if so, do a sudo lsctl restart on the landscape server and let me know how it works for you.
    – dpb
    Apr 17 at 2:58












  • As you can see in the question I did set the root url to the right url. It just looks like it strips everything after the first dot.
    – Stan Vanhoorn
    Apr 17 at 9:18
















Try to open your site in a new incognito window, if it working normal then you should flush the cache of your browser.
– pa4080
Apr 10 at 14:40




Try to open your site in a new incognito window, if it working normal then you should flush the cache of your browser.
– pa4080
Apr 10 at 14:40












@pa4080 that doesn't work. I tried it with different browsers, but all te same problem
– Stan Vanhoorn
Apr 10 at 14:56




@pa4080 that doesn't work. I tried it with different browsers, but all te same problem
– Stan Vanhoorn
Apr 10 at 14:56












"root url" is set correctly in the UI? if so, do a sudo lsctl restart on the landscape server and let me know how it works for you.
– dpb
Apr 17 at 2:58






"root url" is set correctly in the UI? if so, do a sudo lsctl restart on the landscape server and let me know how it works for you.
– dpb
Apr 17 at 2:58














As you can see in the question I did set the root url to the right url. It just looks like it strips everything after the first dot.
– Stan Vanhoorn
Apr 17 at 9:18




As you can see in the question I did set the root url to the right url. It just looks like it strips everything after the first dot.
– Stan Vanhoorn
Apr 17 at 9:18










2 Answers
2






active

oldest

votes


















1














I was having the same issue as you and bumped into this post.



I believe at one point I entered mySubdomain and then later changed it to mySubdomain.domain.com so part of the application had the correct config and part didn't.



In any case, I found that I could edit the conf:



/etc/apache2/sites-available/mySubdomain.conf



I replaced all occurrences of mySubdomain with mySubdomain.domain.com



Then I restarted apache (sudo apachectl graceful) and the web UI no longer had links pointing to http://mySubdomain/



Hope this helps.






share|improve this answer





















  • I deleted my installation. But this gives me hope:) I will try to reinstall after the weekend to verify!
    – Stan Vanhoorn
    May 25 at 14:19



















0














For anyone else that may run into this in future, the lines in the apache site config file that determine the URL for Landscape's web UI are the two RewriteRule lines:



RewriteRule ^/message-system http://localhost:8090/++vh++https:<dnsname>:443/++/ [P,L]
RewriteRule ^/(.*) http://localhost:8080/++vh++https:<dnsname>:443/++/$1 [P]


The <dnsname> part needs to be changed. In this case if it should be management.domain.com but Landscape links/forms go to management, then the current value is probably management and you'll want to change it to management.domain.com and reload apache2.



This is for the web UI links and redirects, the SSL certificate's names matching up is a separate issue.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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%2faskubuntu.com%2fquestions%2f1023621%2fubuntu-16-04-landscape-keeps-redirecting-to-wrong-url%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I was having the same issue as you and bumped into this post.



    I believe at one point I entered mySubdomain and then later changed it to mySubdomain.domain.com so part of the application had the correct config and part didn't.



    In any case, I found that I could edit the conf:



    /etc/apache2/sites-available/mySubdomain.conf



    I replaced all occurrences of mySubdomain with mySubdomain.domain.com



    Then I restarted apache (sudo apachectl graceful) and the web UI no longer had links pointing to http://mySubdomain/



    Hope this helps.






    share|improve this answer





















    • I deleted my installation. But this gives me hope:) I will try to reinstall after the weekend to verify!
      – Stan Vanhoorn
      May 25 at 14:19
















    1














    I was having the same issue as you and bumped into this post.



    I believe at one point I entered mySubdomain and then later changed it to mySubdomain.domain.com so part of the application had the correct config and part didn't.



    In any case, I found that I could edit the conf:



    /etc/apache2/sites-available/mySubdomain.conf



    I replaced all occurrences of mySubdomain with mySubdomain.domain.com



    Then I restarted apache (sudo apachectl graceful) and the web UI no longer had links pointing to http://mySubdomain/



    Hope this helps.






    share|improve this answer





















    • I deleted my installation. But this gives me hope:) I will try to reinstall after the weekend to verify!
      – Stan Vanhoorn
      May 25 at 14:19














    1












    1








    1






    I was having the same issue as you and bumped into this post.



    I believe at one point I entered mySubdomain and then later changed it to mySubdomain.domain.com so part of the application had the correct config and part didn't.



    In any case, I found that I could edit the conf:



    /etc/apache2/sites-available/mySubdomain.conf



    I replaced all occurrences of mySubdomain with mySubdomain.domain.com



    Then I restarted apache (sudo apachectl graceful) and the web UI no longer had links pointing to http://mySubdomain/



    Hope this helps.






    share|improve this answer












    I was having the same issue as you and bumped into this post.



    I believe at one point I entered mySubdomain and then later changed it to mySubdomain.domain.com so part of the application had the correct config and part didn't.



    In any case, I found that I could edit the conf:



    /etc/apache2/sites-available/mySubdomain.conf



    I replaced all occurrences of mySubdomain with mySubdomain.domain.com



    Then I restarted apache (sudo apachectl graceful) and the web UI no longer had links pointing to http://mySubdomain/



    Hope this helps.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 24 at 14:05









    Seth Wessitsh

    111




    111












    • I deleted my installation. But this gives me hope:) I will try to reinstall after the weekend to verify!
      – Stan Vanhoorn
      May 25 at 14:19


















    • I deleted my installation. But this gives me hope:) I will try to reinstall after the weekend to verify!
      – Stan Vanhoorn
      May 25 at 14:19
















    I deleted my installation. But this gives me hope:) I will try to reinstall after the weekend to verify!
    – Stan Vanhoorn
    May 25 at 14:19




    I deleted my installation. But this gives me hope:) I will try to reinstall after the weekend to verify!
    – Stan Vanhoorn
    May 25 at 14:19













    0














    For anyone else that may run into this in future, the lines in the apache site config file that determine the URL for Landscape's web UI are the two RewriteRule lines:



    RewriteRule ^/message-system http://localhost:8090/++vh++https:<dnsname>:443/++/ [P,L]
    RewriteRule ^/(.*) http://localhost:8080/++vh++https:<dnsname>:443/++/$1 [P]


    The <dnsname> part needs to be changed. In this case if it should be management.domain.com but Landscape links/forms go to management, then the current value is probably management and you'll want to change it to management.domain.com and reload apache2.



    This is for the web UI links and redirects, the SSL certificate's names matching up is a separate issue.






    share|improve this answer


























      0














      For anyone else that may run into this in future, the lines in the apache site config file that determine the URL for Landscape's web UI are the two RewriteRule lines:



      RewriteRule ^/message-system http://localhost:8090/++vh++https:<dnsname>:443/++/ [P,L]
      RewriteRule ^/(.*) http://localhost:8080/++vh++https:<dnsname>:443/++/$1 [P]


      The <dnsname> part needs to be changed. In this case if it should be management.domain.com but Landscape links/forms go to management, then the current value is probably management and you'll want to change it to management.domain.com and reload apache2.



      This is for the web UI links and redirects, the SSL certificate's names matching up is a separate issue.






      share|improve this answer
























        0












        0








        0






        For anyone else that may run into this in future, the lines in the apache site config file that determine the URL for Landscape's web UI are the two RewriteRule lines:



        RewriteRule ^/message-system http://localhost:8090/++vh++https:<dnsname>:443/++/ [P,L]
        RewriteRule ^/(.*) http://localhost:8080/++vh++https:<dnsname>:443/++/$1 [P]


        The <dnsname> part needs to be changed. In this case if it should be management.domain.com but Landscape links/forms go to management, then the current value is probably management and you'll want to change it to management.domain.com and reload apache2.



        This is for the web UI links and redirects, the SSL certificate's names matching up is a separate issue.






        share|improve this answer












        For anyone else that may run into this in future, the lines in the apache site config file that determine the URL for Landscape's web UI are the two RewriteRule lines:



        RewriteRule ^/message-system http://localhost:8090/++vh++https:<dnsname>:443/++/ [P,L]
        RewriteRule ^/(.*) http://localhost:8080/++vh++https:<dnsname>:443/++/$1 [P]


        The <dnsname> part needs to be changed. In this case if it should be management.domain.com but Landscape links/forms go to management, then the current value is probably management and you'll want to change it to management.domain.com and reload apache2.



        This is for the web UI links and redirects, the SSL certificate's names matching up is a separate issue.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 6 at 3:15









        cflee

        212




        212






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2faskubuntu.com%2fquestions%2f1023621%2fubuntu-16-04-landscape-keeps-redirecting-to-wrong-url%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

            Ellipse (mathématiques)

            Quarter-circle Tiles

            Mont Emei