You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org> on 2008/06/11 23:49:12 UTC

[jira] Created: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Wrong repository url when archiva is used behind Apache with mof_proxy
----------------------------------------------------------------------

                 Key: MRM-834
                 URL: http://jira.codehaus.org/browse/MRM-834
             Project: Archiva
          Issue Type: Bug
          Components: repository interface
            Reporter: Emmanuel Venisse


The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter reassigned MRM-834:
--------------------------------

    Assignee: Brett Porter

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>            Assignee: Brett Porter
>             Fix For: 1.1
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Venisse updated MRM-834:
---------------------------------

    Fix Version/s: 1.1

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>             Fix For: 1.1
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138257#action_138257 ] 

Emmanuel Venisse commented on MRM-834:
--------------------------------------

no, in continuum we need it because it is used outside web pages so we can't get the real url.
For archiva, we are on a page so we know the url used by the user so the host/port that we can use instead of ${baseUrl} used in the jsp

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>             Fix For: 1.1
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138256#action_138256 ] 

Wendy Smoak commented on MRM-834:
---------------------------------

would this need the equivalent of Continuum's base url configuration? (or do we already have that and it's just not displaying?)

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>             Fix For: 1.1
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "James William Dumay (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James William Dumay reassigned MRM-834:
---------------------------------------

    Assignee: James William Dumay  (was: Brett Porter)

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>            Assignee: James William Dumay
>             Fix For: 1.2
>
>         Attachments: MRM-834.diff
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139804#action_139804 ] 

Emmanuel Venisse commented on MRM-834:
--------------------------------------

Marc,
Can I see your config?

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>             Fix For: 1.1
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Marc Lustig (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=139765#action_139765 ] 

Marc Lustig commented on MRM-834:
---------------------------------

Well, we also have a ReverseProxy in front of Archiva/JBoss, and we have no such issues.
I suppose the ReverseProxy is badly configured.

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>             Fix For: 1.1
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "James William Dumay (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James William Dumay updated MRM-834:
------------------------------------

    Fix Version/s:     (was: 1.x)
                   1.2

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>            Assignee: Brett Porter
>             Fix For: 1.2
>
>         Attachments: MRM-834.diff
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-834:
-----------------------------

    Fix Version/s:     (was: 1.1)
                   1.x

bumping this out to the future in case someone wants to make the host name configurables

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>            Assignee: Brett Porter
>             Fix For: 1.x
>
>         Attachments: MRM-834.diff
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter closed MRM-834.
----------------------------

         Assignee: Brett Porter  (was: James William Dumay)
       Resolution: Fixed
    Fix Version/s:     (was: 1.2)
                   1.1.2

applied patch, will create a new issue for making the host explicitly configurable

> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>            Assignee: Brett Porter
>             Fix For: 1.1.2
>
>         Attachments: MRM-834.diff
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MRM-834) Wrong repository url when archiva is used behind Apache with mof_proxy

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-834:
-----------------------------

    Attachment: MRM-834.diff

here is a patch that would use the X-Forwarded-Host header if present. However, it's only available on Apache 2.0+ and there's a better solution in this case. You should add the following configuration directive instead:

ProxyPreserveHost on



> Wrong repository url when archiva is used behind Apache with mof_proxy
> ----------------------------------------------------------------------
>
>                 Key: MRM-834
>                 URL: http://jira.codehaus.org/browse/MRM-834
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository interface
>            Reporter: Emmanuel Venisse
>            Assignee: Brett Porter
>             Fix For: 1.x
>
>         Attachments: MRM-834.diff
>
>
> The repository url is http:localhost:8080/archiva/repository/repoName instead of http(s)://apache.host/archiva/repository/repoName

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira