Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6795683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:22:35+00:00 2026-05-26T18:22:35+00:00

so far I developed completey locally, having everything (Apache, Openfire, JSJaC application) on my

  • 0

so far I developed completey locally, having everything (Apache, Openfire, JSJaC application) on my laptop, running quite fine. Now I want to use remote server for Apache/Openfire. I did basically the same steps, incl. the whole http-bind stuff. I test the setting with simpleclient.html provided by JSJaC.

Now here’s the deal, if I use the simpleclient directly on the remote server – e.g., http://here.domain.org/simpleclient.html – it works. If I use it locally – e.g., http://[local_machine]/simpleclient.html – and with the same settings I get an 503 (service unavailable). It seems to be more a network/Apache issue than Openfire/JSJaC one, but I’m not an expert.

My parameters for the simpleclient:

  • HTTP Base: http://here.domain.org/http-bind/
  • JabberServer: here.domain.org

So in my apache virtual host conf file I have the lines:

  • AddDefaultCharset UTF-8
  • ProxyReqests On
  • ProxyPass /http-bind/ http://127.0.0.1:7070/http-bind/

So basically the http bind works since I can connect when the simpleclient.html resides on the server. What I tried so far:

  • checked if 7070 open from extern: yes
  • checked etc/hosts – here the relevant lines
    • 127.0.0.1 localhost
    • 123.123.123.123 here.domain.org here
  • checked Apache conf for restrictions: can’t find any, basically i have an “Allow from all” everywhere (but I’m not completely sure where to look at)

By the way, with,e.g., Pidgin I can connect from my laptop to the remote server. Just the JSJaC simpleclient won’t do. So I assume it’s the http-bind that causes the trouble. I would understand if port 7070 weren’t open, but it is.

Any hints or help are much appreciated!

Christian

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:22:36+00:00Added an answer on May 26, 2026 at 6:22 pm

    Ok, I got it. It was a cross-domain scripting issue. I started looking into the JSJaC library and noticed that it makes XmlHttpRequests which by default won’t work across different domains. I therefore had to allow this with Apache on the Openfire-Server. I added the follwing entries in the VirtualHost conf file:

        Header always set Access-Control-Allow-Origin "*"
        Header always set Access-Control-Methods "POST, GET, OPTIIONS"
        Header always set Access-Control-Allow-Credentials true
        Header always set Access-Control-Allow-Headers "Content-Type, *"
    

    Of course the mod_headers module must be loaded for this.

    I’m not sure which entries are actually required, I didn’t try every combinations. I think the always is needed since the request to the http-bind address is a proxy thingy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed a SIP stack for my company. It's far from perfect and it's
I'm learning how to develop SOAP web services with Java. So far now I've
We have a web application which has been developed over the past 7 months.
I developed a Webserver that uses idHttpServer and a client application that uses idHTTP
I currently have a single solution that contains both the one application developed so
I recently upgraded to Oracle Sql Developer 2.1 It's far better, but the query
It is a well known problem to every web developer. As far as I
I develop web applications and in my job so far, I have been waging
Far as best practices are concerned, which is better: public void SomeMethod(string str) {
As far as I know, foreign keys (FK) are used to aid the programmer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.