How to set virtual host for OTRS URL in rhel 6












0















i installed otrs successfully all are working fine but i have to set an simple name instead of OTRS URL in RED HAT 6 operating System. I'm new to RHEL and i dont know how to set the virtual host.



http://ipaddress/otrs/index.pl to simple name service.local



http://ipaddress/otrs/customer.pl to again simple name responce.local



in WAN (private area network). i required just like above please guys help me to set the virtual host.



Thanks advance,



Regards GK










share|improve this question



























    0















    i installed otrs successfully all are working fine but i have to set an simple name instead of OTRS URL in RED HAT 6 operating System. I'm new to RHEL and i dont know how to set the virtual host.



    http://ipaddress/otrs/index.pl to simple name service.local



    http://ipaddress/otrs/customer.pl to again simple name responce.local



    in WAN (private area network). i required just like above please guys help me to set the virtual host.



    Thanks advance,



    Regards GK










    share|improve this question

























      0












      0








      0








      i installed otrs successfully all are working fine but i have to set an simple name instead of OTRS URL in RED HAT 6 operating System. I'm new to RHEL and i dont know how to set the virtual host.



      http://ipaddress/otrs/index.pl to simple name service.local



      http://ipaddress/otrs/customer.pl to again simple name responce.local



      in WAN (private area network). i required just like above please guys help me to set the virtual host.



      Thanks advance,



      Regards GK










      share|improve this question














      i installed otrs successfully all are working fine but i have to set an simple name instead of OTRS URL in RED HAT 6 operating System. I'm new to RHEL and i dont know how to set the virtual host.



      http://ipaddress/otrs/index.pl to simple name service.local



      http://ipaddress/otrs/customer.pl to again simple name responce.local



      in WAN (private area network). i required just like above please guys help me to set the virtual host.



      Thanks advance,



      Regards GK







      rhel-6






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 4 '15 at 5:08









      Gopal KrishnanGopal Krishnan

      313




      313






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Here is documentation for apache httpd how to make virtual hosts






          share|improve this answer
























          • Thanks for reply @RN, i want for Perl script. it accept only html format files. i googled it and gathered lot of answer(source code) for virtual host but it s not working till. check this forums.otterhub.org/viewtopic.php?f=60&t=9329

            – Gopal Krishnan
            May 4 '15 at 6:03











          • As far as I remember you can serve perl files in apache via mod_perl

            – Romeo Ninov
            May 4 '15 at 6:24











          • mod_perl ? how to please give me steps to do it. @RN

            – Gopal Krishnan
            May 4 '15 at 6:29











          • Check here: server-world.info/en/note?os=CentOS_6&p=httpd&f=9

            – Romeo Ninov
            May 4 '15 at 6:37











          • Thanks Romeo, i edited the perl.conf file but after restart the httpd it gives error.

            – Gopal Krishnan
            May 4 '15 at 7:07



















          0














          I managed to set up OTRS as a virtualhost - so you can enter as url only otrs.domain.com.



          This is how I've done it:



          <VirtualHost *:80>
          ServerName otrs.domain.com
          DocumentRoot "/opt/otrs/bin/cgi.bin/"
          DirectoryIndex index.pl
          Alias /otrs-web/ "opt/otrs/var/httpd/htdocs/"
          <Location "/otrs-web/">
          SetHandler default-handler
          </Location>
          </Virtualhost>


          In the apache otrs.conf you need to edit everything that has /otrs/xxxxx to /xxxxx



          Logic behind it is - in normal apache configuration you need to say which folder is your cgi folder. Well, if you set up a root folder as your cgi folder, everything in that subfolder will be considered as script and you won't be able to get any other file. In this example: any .css, .png etc. That's why you need to tell apache that /otrs-web location is set as default-handler and not script-handler.



          Works like a charm ;-)






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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%2fsuperuser.com%2fquestions%2f909441%2fhow-to-set-virtual-host-for-otrs-url-in-rhel-6%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









            0














            Here is documentation for apache httpd how to make virtual hosts






            share|improve this answer
























            • Thanks for reply @RN, i want for Perl script. it accept only html format files. i googled it and gathered lot of answer(source code) for virtual host but it s not working till. check this forums.otterhub.org/viewtopic.php?f=60&t=9329

              – Gopal Krishnan
              May 4 '15 at 6:03











            • As far as I remember you can serve perl files in apache via mod_perl

              – Romeo Ninov
              May 4 '15 at 6:24











            • mod_perl ? how to please give me steps to do it. @RN

              – Gopal Krishnan
              May 4 '15 at 6:29











            • Check here: server-world.info/en/note?os=CentOS_6&p=httpd&f=9

              – Romeo Ninov
              May 4 '15 at 6:37











            • Thanks Romeo, i edited the perl.conf file but after restart the httpd it gives error.

              – Gopal Krishnan
              May 4 '15 at 7:07
















            0














            Here is documentation for apache httpd how to make virtual hosts






            share|improve this answer
























            • Thanks for reply @RN, i want for Perl script. it accept only html format files. i googled it and gathered lot of answer(source code) for virtual host but it s not working till. check this forums.otterhub.org/viewtopic.php?f=60&t=9329

              – Gopal Krishnan
              May 4 '15 at 6:03











            • As far as I remember you can serve perl files in apache via mod_perl

              – Romeo Ninov
              May 4 '15 at 6:24











            • mod_perl ? how to please give me steps to do it. @RN

              – Gopal Krishnan
              May 4 '15 at 6:29











            • Check here: server-world.info/en/note?os=CentOS_6&p=httpd&f=9

              – Romeo Ninov
              May 4 '15 at 6:37











            • Thanks Romeo, i edited the perl.conf file but after restart the httpd it gives error.

              – Gopal Krishnan
              May 4 '15 at 7:07














            0












            0








            0







            Here is documentation for apache httpd how to make virtual hosts






            share|improve this answer













            Here is documentation for apache httpd how to make virtual hosts







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 4 '15 at 5:57









            Romeo NinovRomeo Ninov

            1,85521014




            1,85521014













            • Thanks for reply @RN, i want for Perl script. it accept only html format files. i googled it and gathered lot of answer(source code) for virtual host but it s not working till. check this forums.otterhub.org/viewtopic.php?f=60&t=9329

              – Gopal Krishnan
              May 4 '15 at 6:03











            • As far as I remember you can serve perl files in apache via mod_perl

              – Romeo Ninov
              May 4 '15 at 6:24











            • mod_perl ? how to please give me steps to do it. @RN

              – Gopal Krishnan
              May 4 '15 at 6:29











            • Check here: server-world.info/en/note?os=CentOS_6&p=httpd&f=9

              – Romeo Ninov
              May 4 '15 at 6:37











            • Thanks Romeo, i edited the perl.conf file but after restart the httpd it gives error.

              – Gopal Krishnan
              May 4 '15 at 7:07



















            • Thanks for reply @RN, i want for Perl script. it accept only html format files. i googled it and gathered lot of answer(source code) for virtual host but it s not working till. check this forums.otterhub.org/viewtopic.php?f=60&t=9329

              – Gopal Krishnan
              May 4 '15 at 6:03











            • As far as I remember you can serve perl files in apache via mod_perl

              – Romeo Ninov
              May 4 '15 at 6:24











            • mod_perl ? how to please give me steps to do it. @RN

              – Gopal Krishnan
              May 4 '15 at 6:29











            • Check here: server-world.info/en/note?os=CentOS_6&p=httpd&f=9

              – Romeo Ninov
              May 4 '15 at 6:37











            • Thanks Romeo, i edited the perl.conf file but after restart the httpd it gives error.

              – Gopal Krishnan
              May 4 '15 at 7:07

















            Thanks for reply @RN, i want for Perl script. it accept only html format files. i googled it and gathered lot of answer(source code) for virtual host but it s not working till. check this forums.otterhub.org/viewtopic.php?f=60&t=9329

            – Gopal Krishnan
            May 4 '15 at 6:03





            Thanks for reply @RN, i want for Perl script. it accept only html format files. i googled it and gathered lot of answer(source code) for virtual host but it s not working till. check this forums.otterhub.org/viewtopic.php?f=60&t=9329

            – Gopal Krishnan
            May 4 '15 at 6:03













            As far as I remember you can serve perl files in apache via mod_perl

            – Romeo Ninov
            May 4 '15 at 6:24





            As far as I remember you can serve perl files in apache via mod_perl

            – Romeo Ninov
            May 4 '15 at 6:24













            mod_perl ? how to please give me steps to do it. @RN

            – Gopal Krishnan
            May 4 '15 at 6:29





            mod_perl ? how to please give me steps to do it. @RN

            – Gopal Krishnan
            May 4 '15 at 6:29













            Check here: server-world.info/en/note?os=CentOS_6&p=httpd&f=9

            – Romeo Ninov
            May 4 '15 at 6:37





            Check here: server-world.info/en/note?os=CentOS_6&p=httpd&f=9

            – Romeo Ninov
            May 4 '15 at 6:37













            Thanks Romeo, i edited the perl.conf file but after restart the httpd it gives error.

            – Gopal Krishnan
            May 4 '15 at 7:07





            Thanks Romeo, i edited the perl.conf file but after restart the httpd it gives error.

            – Gopal Krishnan
            May 4 '15 at 7:07













            0














            I managed to set up OTRS as a virtualhost - so you can enter as url only otrs.domain.com.



            This is how I've done it:



            <VirtualHost *:80>
            ServerName otrs.domain.com
            DocumentRoot "/opt/otrs/bin/cgi.bin/"
            DirectoryIndex index.pl
            Alias /otrs-web/ "opt/otrs/var/httpd/htdocs/"
            <Location "/otrs-web/">
            SetHandler default-handler
            </Location>
            </Virtualhost>


            In the apache otrs.conf you need to edit everything that has /otrs/xxxxx to /xxxxx



            Logic behind it is - in normal apache configuration you need to say which folder is your cgi folder. Well, if you set up a root folder as your cgi folder, everything in that subfolder will be considered as script and you won't be able to get any other file. In this example: any .css, .png etc. That's why you need to tell apache that /otrs-web location is set as default-handler and not script-handler.



            Works like a charm ;-)






            share|improve this answer




























              0














              I managed to set up OTRS as a virtualhost - so you can enter as url only otrs.domain.com.



              This is how I've done it:



              <VirtualHost *:80>
              ServerName otrs.domain.com
              DocumentRoot "/opt/otrs/bin/cgi.bin/"
              DirectoryIndex index.pl
              Alias /otrs-web/ "opt/otrs/var/httpd/htdocs/"
              <Location "/otrs-web/">
              SetHandler default-handler
              </Location>
              </Virtualhost>


              In the apache otrs.conf you need to edit everything that has /otrs/xxxxx to /xxxxx



              Logic behind it is - in normal apache configuration you need to say which folder is your cgi folder. Well, if you set up a root folder as your cgi folder, everything in that subfolder will be considered as script and you won't be able to get any other file. In this example: any .css, .png etc. That's why you need to tell apache that /otrs-web location is set as default-handler and not script-handler.



              Works like a charm ;-)






              share|improve this answer


























                0












                0








                0







                I managed to set up OTRS as a virtualhost - so you can enter as url only otrs.domain.com.



                This is how I've done it:



                <VirtualHost *:80>
                ServerName otrs.domain.com
                DocumentRoot "/opt/otrs/bin/cgi.bin/"
                DirectoryIndex index.pl
                Alias /otrs-web/ "opt/otrs/var/httpd/htdocs/"
                <Location "/otrs-web/">
                SetHandler default-handler
                </Location>
                </Virtualhost>


                In the apache otrs.conf you need to edit everything that has /otrs/xxxxx to /xxxxx



                Logic behind it is - in normal apache configuration you need to say which folder is your cgi folder. Well, if you set up a root folder as your cgi folder, everything in that subfolder will be considered as script and you won't be able to get any other file. In this example: any .css, .png etc. That's why you need to tell apache that /otrs-web location is set as default-handler and not script-handler.



                Works like a charm ;-)






                share|improve this answer













                I managed to set up OTRS as a virtualhost - so you can enter as url only otrs.domain.com.



                This is how I've done it:



                <VirtualHost *:80>
                ServerName otrs.domain.com
                DocumentRoot "/opt/otrs/bin/cgi.bin/"
                DirectoryIndex index.pl
                Alias /otrs-web/ "opt/otrs/var/httpd/htdocs/"
                <Location "/otrs-web/">
                SetHandler default-handler
                </Location>
                </Virtualhost>


                In the apache otrs.conf you need to edit everything that has /otrs/xxxxx to /xxxxx



                Logic behind it is - in normal apache configuration you need to say which folder is your cgi folder. Well, if you set up a root folder as your cgi folder, everything in that subfolder will be considered as script and you won't be able to get any other file. In this example: any .css, .png etc. That's why you need to tell apache that /otrs-web location is set as default-handler and not script-handler.



                Works like a charm ;-)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 11 '16 at 16:31









                MarkoAMarkoA

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f909441%2fhow-to-set-virtual-host-for-otrs-url-in-rhel-6%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

                    Paul Cézanne

                    UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

                    Angular material date-picker (MatDatepicker) auto completes the date on focus out