apache ScriptAlias and cgi-bin non default usage for twiki configurationWebDAV on CentOS - getting 403 error...

My Graph Theory Students

How to make healing in an exploration game interesting

What do Xenomorphs eat in the Alien series?

Why do Australian milk farmers need to protest supermarkets' milk price?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

How to change two letters closest to a string and one letter immediately after a string using notepad++

What approach do we need to follow for projects without a test environment?

What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?

How to read the value of this capacitor?

how to write formula in word in latex

Why did it take so long to abandon sail after steamships were demonstrated?

How do I hide Chekhov's Gun?

How to create the Curved texte?

Is it normal that my co-workers at a fitness company criticize my food choices?

Did Ender ever learn that he killed Stilson and/or Bonzo?

It's a yearly task, alright

Why is the President allowed to veto a cancellation of emergency powers?

If curse and magic is two sides of the same coin, why the former is forbidden?

Can a druid choose the size of its wild shape beast?

Does someone need to be connected to my network to sniff HTTP requests?

How to explain that I do not want to visit a country due to personal safety concern?

Why Choose Less Effective Armour Types?

Who is flying the vertibirds?

Instead of Universal Basic Income, why not Universal Basic NEEDS?



apache ScriptAlias and cgi-bin non default usage for twiki configuration


WebDAV on CentOS - getting 403 error when attempt to uploadDjango running on Apache+WSGI and apache SSL proxyingApache2 Permission denied: access to / deniedApache mod_setenvif Server_AddrApache authentication requirement based on locationApache httpd with LDAP error in CentOSLive site with ssl enabled redirects to the staging site without sslDoes Amazon Elastic Beanstalk cope with HTTP Authentication?LameUser trying - apache2 webserver authentication - IP range to access without pass prompt others with itOpenBSD Apache configuration: NFS mount













0















I am setting up twiki configuration with apache and having issues with htpasswd not working. I have set the passwd prior and stored in /var/www/twiki/data/.htpasswd file. Configuration is shown below. What could be reason ??



/etc/httpd/conf/httpd.conf configure looks like this:



ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
SetHandler cgi-script
Order allow,deny
Allow from all
</Directory>


and I am setting twiki.conf (twiki.org) files in /etc/httpd/conf.d/twiki.conf



ScriptAlias /twiki "/var/www/twiki/bin"
Alias /twiki/pub "/var/www/twiki/pub"

# This specifies the options on the TWiki scripts directory. The ExecCGI
# and SetHandler tell apache that it contains scripts. "Require all granted"
# lets any IP address access this URL.

<Directory "/var/www/twiki/bin">
AllowOverride None
Require all granted
Deny from env=blockAccess

Options ExecCGI FollowSymLinks
SetHandler cgi-script

# Password file for TWiki users
AuthUserFile /var/www/twiki/data/.htpasswd
AuthName 'Enter your WikiName:
AuthType Basic

# File to return on access control error (e.g. wrong password)
ErrorDocument 401 /twiki/view/TWiki/TWikiRegistration




When I press cancel on login screen, it just throws 401 but never takes me to TWikiRegistration page???? Please help.










share|improve this question














bumped to the homepage by Community 1 min ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I am setting up twiki configuration with apache and having issues with htpasswd not working. I have set the passwd prior and stored in /var/www/twiki/data/.htpasswd file. Configuration is shown below. What could be reason ??



    /etc/httpd/conf/httpd.conf configure looks like this:



    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

    <Directory "/var/www/cgi-bin">
    AllowOverride None
    Options ExecCGI
    SetHandler cgi-script
    Order allow,deny
    Allow from all
    </Directory>


    and I am setting twiki.conf (twiki.org) files in /etc/httpd/conf.d/twiki.conf



    ScriptAlias /twiki "/var/www/twiki/bin"
    Alias /twiki/pub "/var/www/twiki/pub"

    # This specifies the options on the TWiki scripts directory. The ExecCGI
    # and SetHandler tell apache that it contains scripts. "Require all granted"
    # lets any IP address access this URL.

    <Directory "/var/www/twiki/bin">
    AllowOverride None
    Require all granted
    Deny from env=blockAccess

    Options ExecCGI FollowSymLinks
    SetHandler cgi-script

    # Password file for TWiki users
    AuthUserFile /var/www/twiki/data/.htpasswd
    AuthName 'Enter your WikiName:
    AuthType Basic

    # File to return on access control error (e.g. wrong password)
    ErrorDocument 401 /twiki/view/TWiki/TWikiRegistration




    When I press cancel on login screen, it just throws 401 but never takes me to TWikiRegistration page???? Please help.










    share|improve this question














    bumped to the homepage by Community 1 min ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I am setting up twiki configuration with apache and having issues with htpasswd not working. I have set the passwd prior and stored in /var/www/twiki/data/.htpasswd file. Configuration is shown below. What could be reason ??



      /etc/httpd/conf/httpd.conf configure looks like this:



      ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

      <Directory "/var/www/cgi-bin">
      AllowOverride None
      Options ExecCGI
      SetHandler cgi-script
      Order allow,deny
      Allow from all
      </Directory>


      and I am setting twiki.conf (twiki.org) files in /etc/httpd/conf.d/twiki.conf



      ScriptAlias /twiki "/var/www/twiki/bin"
      Alias /twiki/pub "/var/www/twiki/pub"

      # This specifies the options on the TWiki scripts directory. The ExecCGI
      # and SetHandler tell apache that it contains scripts. "Require all granted"
      # lets any IP address access this URL.

      <Directory "/var/www/twiki/bin">
      AllowOverride None
      Require all granted
      Deny from env=blockAccess

      Options ExecCGI FollowSymLinks
      SetHandler cgi-script

      # Password file for TWiki users
      AuthUserFile /var/www/twiki/data/.htpasswd
      AuthName 'Enter your WikiName:
      AuthType Basic

      # File to return on access control error (e.g. wrong password)
      ErrorDocument 401 /twiki/view/TWiki/TWikiRegistration




      When I press cancel on login screen, it just throws 401 but never takes me to TWikiRegistration page???? Please help.










      share|improve this question














      I am setting up twiki configuration with apache and having issues with htpasswd not working. I have set the passwd prior and stored in /var/www/twiki/data/.htpasswd file. Configuration is shown below. What could be reason ??



      /etc/httpd/conf/httpd.conf configure looks like this:



      ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

      <Directory "/var/www/cgi-bin">
      AllowOverride None
      Options ExecCGI
      SetHandler cgi-script
      Order allow,deny
      Allow from all
      </Directory>


      and I am setting twiki.conf (twiki.org) files in /etc/httpd/conf.d/twiki.conf



      ScriptAlias /twiki "/var/www/twiki/bin"
      Alias /twiki/pub "/var/www/twiki/pub"

      # This specifies the options on the TWiki scripts directory. The ExecCGI
      # and SetHandler tell apache that it contains scripts. "Require all granted"
      # lets any IP address access this URL.

      <Directory "/var/www/twiki/bin">
      AllowOverride None
      Require all granted
      Deny from env=blockAccess

      Options ExecCGI FollowSymLinks
      SetHandler cgi-script

      # Password file for TWiki users
      AuthUserFile /var/www/twiki/data/.htpasswd
      AuthName 'Enter your WikiName:
      AuthType Basic

      # File to return on access control error (e.g. wrong password)
      ErrorDocument 401 /twiki/view/TWiki/TWikiRegistration




      When I press cancel on login screen, it just throws 401 but never takes me to TWikiRegistration page???? Please help.







      apache-2.2 twiki






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 24 '13 at 16:58









      NullExceptionNullException

      1011




      1011





      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 1 min ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          One issue I see is your ScriptAlias and Alias. The Alias never applies. Either change the ScriptAlias to /do or something else than /twiki, or switch the two settings. Not sure though if this fixes your apache login issue. Why apache login and not template login?



          I recommend using TWiki's apache config generator, http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator



          We have a friendly community on TWiki.org, I invite you to stop by.






          share|improve this answer
























          • /var/www/twiki is my root twiki, so whats the value of /do here? httpd.conf file cgi path is /var/www/cgi-bin. I am trying to use /var/www/twiki/bin as another place for cgi scripts for twiki. I am using apache login/passwd after creating login/passwd using htpasswd and stored in /var/www/twiki/data/.htpasswd

            – NullException
            Oct 24 '13 at 18:43





















          0














          ScriptAlias /do "/var/www/twiki/bin"



          The /do is the URL path, so that you access TWiki like http://example.com/do/view, which will call the script at var/www/twiki/bin/view.



          You don't need to manually create the .htpasswd. Register users in TWiki once configured.



          I recommend using the template login, not apache login. That way users can login and logout.



          Visit TWiki.org, helpful community there.






          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%2f548413%2fapache-scriptalias-and-cgi-bin-non-default-usage-for-twiki-configuration%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














            One issue I see is your ScriptAlias and Alias. The Alias never applies. Either change the ScriptAlias to /do or something else than /twiki, or switch the two settings. Not sure though if this fixes your apache login issue. Why apache login and not template login?



            I recommend using TWiki's apache config generator, http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator



            We have a friendly community on TWiki.org, I invite you to stop by.






            share|improve this answer
























            • /var/www/twiki is my root twiki, so whats the value of /do here? httpd.conf file cgi path is /var/www/cgi-bin. I am trying to use /var/www/twiki/bin as another place for cgi scripts for twiki. I am using apache login/passwd after creating login/passwd using htpasswd and stored in /var/www/twiki/data/.htpasswd

              – NullException
              Oct 24 '13 at 18:43


















            0














            One issue I see is your ScriptAlias and Alias. The Alias never applies. Either change the ScriptAlias to /do or something else than /twiki, or switch the two settings. Not sure though if this fixes your apache login issue. Why apache login and not template login?



            I recommend using TWiki's apache config generator, http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator



            We have a friendly community on TWiki.org, I invite you to stop by.






            share|improve this answer
























            • /var/www/twiki is my root twiki, so whats the value of /do here? httpd.conf file cgi path is /var/www/cgi-bin. I am trying to use /var/www/twiki/bin as another place for cgi scripts for twiki. I am using apache login/passwd after creating login/passwd using htpasswd and stored in /var/www/twiki/data/.htpasswd

              – NullException
              Oct 24 '13 at 18:43
















            0












            0








            0







            One issue I see is your ScriptAlias and Alias. The Alias never applies. Either change the ScriptAlias to /do or something else than /twiki, or switch the two settings. Not sure though if this fixes your apache login issue. Why apache login and not template login?



            I recommend using TWiki's apache config generator, http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator



            We have a friendly community on TWiki.org, I invite you to stop by.






            share|improve this answer













            One issue I see is your ScriptAlias and Alias. The Alias never applies. Either change the ScriptAlias to /do or something else than /twiki, or switch the two settings. Not sure though if this fixes your apache login issue. Why apache login and not template login?



            I recommend using TWiki's apache config generator, http://twiki.org/cgi-bin/view/TWiki/ApacheConfigGenerator



            We have a friendly community on TWiki.org, I invite you to stop by.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 24 '13 at 18:15









            Peter ThoenyPeter Thoeny

            1




            1













            • /var/www/twiki is my root twiki, so whats the value of /do here? httpd.conf file cgi path is /var/www/cgi-bin. I am trying to use /var/www/twiki/bin as another place for cgi scripts for twiki. I am using apache login/passwd after creating login/passwd using htpasswd and stored in /var/www/twiki/data/.htpasswd

              – NullException
              Oct 24 '13 at 18:43





















            • /var/www/twiki is my root twiki, so whats the value of /do here? httpd.conf file cgi path is /var/www/cgi-bin. I am trying to use /var/www/twiki/bin as another place for cgi scripts for twiki. I am using apache login/passwd after creating login/passwd using htpasswd and stored in /var/www/twiki/data/.htpasswd

              – NullException
              Oct 24 '13 at 18:43



















            /var/www/twiki is my root twiki, so whats the value of /do here? httpd.conf file cgi path is /var/www/cgi-bin. I am trying to use /var/www/twiki/bin as another place for cgi scripts for twiki. I am using apache login/passwd after creating login/passwd using htpasswd and stored in /var/www/twiki/data/.htpasswd

            – NullException
            Oct 24 '13 at 18:43







            /var/www/twiki is my root twiki, so whats the value of /do here? httpd.conf file cgi path is /var/www/cgi-bin. I am trying to use /var/www/twiki/bin as another place for cgi scripts for twiki. I am using apache login/passwd after creating login/passwd using htpasswd and stored in /var/www/twiki/data/.htpasswd

            – NullException
            Oct 24 '13 at 18:43















            0














            ScriptAlias /do "/var/www/twiki/bin"



            The /do is the URL path, so that you access TWiki like http://example.com/do/view, which will call the script at var/www/twiki/bin/view.



            You don't need to manually create the .htpasswd. Register users in TWiki once configured.



            I recommend using the template login, not apache login. That way users can login and logout.



            Visit TWiki.org, helpful community there.






            share|improve this answer




























              0














              ScriptAlias /do "/var/www/twiki/bin"



              The /do is the URL path, so that you access TWiki like http://example.com/do/view, which will call the script at var/www/twiki/bin/view.



              You don't need to manually create the .htpasswd. Register users in TWiki once configured.



              I recommend using the template login, not apache login. That way users can login and logout.



              Visit TWiki.org, helpful community there.






              share|improve this answer


























                0












                0








                0







                ScriptAlias /do "/var/www/twiki/bin"



                The /do is the URL path, so that you access TWiki like http://example.com/do/view, which will call the script at var/www/twiki/bin/view.



                You don't need to manually create the .htpasswd. Register users in TWiki once configured.



                I recommend using the template login, not apache login. That way users can login and logout.



                Visit TWiki.org, helpful community there.






                share|improve this answer













                ScriptAlias /do "/var/www/twiki/bin"



                The /do is the URL path, so that you access TWiki like http://example.com/do/view, which will call the script at var/www/twiki/bin/view.



                You don't need to manually create the .htpasswd. Register users in TWiki once configured.



                I recommend using the template login, not apache login. That way users can login and logout.



                Visit TWiki.org, helpful community there.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 24 '13 at 18:54









                Peter ThoenyPeter Thoeny

                11




                11






























                    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%2f548413%2fapache-scriptalias-and-cgi-bin-non-default-usage-for-twiki-configuration%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

                    As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Українські прізвища Зміст Історичні відомості |...