Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #31089

Re: Is it possible to do AJAX coding on the *same* computer?

From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.javascript
Subject Re: Is it possible to do AJAX coding on the *same* computer?
Date 2016-08-06 20:08 +0100
Message-ID <060820162008518814%timstreater@greenbee.net> (permalink)
References (3 earlier) <437972ee-7b0a-4c65-ab7b-3dc8f120177d@googlegroups.com> <084c6ab6-6a3c-4978-86a7-25c45bb566d1@googlegroups.com> <5c98583c-a491-459c-a1b6-a63148ab10e2@googlegroups.com> <9b574432-59c9-4627-80c6-510cd6328118@googlegroups.com> <9e25cd52-5192-4de7-ae84-76503af1c8fa@googlegroups.com>

Show all headers | View raw


In article <9e25cd52-5192-4de7-ae84-76503af1c8fa@googlegroups.com>,
<bit-naughty@hotmail.com> wrote:

>On Thursday, August 4, 2016 at 10:07:34 PM UTC+5:30, Michael Haufe (TNO) wrote:
>
>> if you set your local site with a different url, 
>
>Sorry - what does this mean? How do I set the URL of the local site? The root
>directory for the site will be /var/www/html , where the HTML files will be
>uploaded (or, in this case, simply *created*), and then going to localhost in
>the browser will show me the site...? That's the way it works out-of-the-box
>in CentOS...... - you mean I can set a *URL* for the local site on top of
>that?? 
>Does this mean poking about with /etc/hosts or something? Why would this be
>necessary?
>(I know you said no LAMP questions, but really, I think this is relevant....)

Instead of your ajax request being made to
http://www.example.com/path/to/script you make it to
http://localhost/path/to/script

If you want to use another port than the default, you specify it as:

   http://localhost:xxxx/path/to/script

where xxxx is the portnumber to use. Then you have to make sure your
apache instance is using that port number

-- 
"The idea that Bill Gates has appeared like a knight in shining armour to
 lead all customers out of a mire of technological chaos neatly ignores 
 the fact that it was he who, by peddling second-rate technology, led them
 into it in the first place."                             - Douglas Adams

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is it possible to do AJAX coding on the *same* computer? bit-naughty@hotmail.com - 2016-08-02 09:49 -0700
  Re: Is it possible to do AJAX coding on the *same* computer? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-02 22:26 -0700
  Re: Is it possible to do AJAX coding on the *same* computer? bit-naughty@hotmail.com - 2016-08-02 23:48 -0700
    Re: Is it possible to do AJAX coding on the *same* computer? Andrew Poulos <ap_prog@hotmail.com> - 2016-08-03 17:58 +1000
      Re: Is it possible to do AJAX coding on the *same* computer? I Am Here <iamhereintheworld@gmail.com> - 2016-08-03 13:16 -0700
        Re: Is it possible to do AJAX coding on the *same* computer? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-03 16:13 -0700
          Re: Is it possible to do AJAX coding on the *same* computer? bit-naughty@hotmail.com - 2016-08-04 06:56 -0700
            Re: Is it possible to do AJAX coding on the *same* computer? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-04 09:37 -0700
              Re: Is it possible to do AJAX coding on the *same* computer? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-04 19:22 +0200
                Re: Is it possible to do AJAX coding on the *same* computer? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-04 10:57 -0700
                Re: Is it possible to do AJAX coding on the *same* computer? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-04 20:20 +0200
                Re: Is it possible to do AJAX coding on the *same* computer? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-08-04 13:22 -0700
                Re: Is it possible to do AJAX coding on the *same* computer? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-05 07:37 +0200
                User scripts (was: Is it possible to do AJAX coding on the *same* computer?) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-08-06 13:38 +0200
              Re: Is it possible to do AJAX coding on the *same* computer? bit-naughty@hotmail.com - 2016-08-05 12:44 -0700
                Re: Is it possible to do AJAX coding on the *same* computer? Tim Streater <timstreater@greenbee.net> - 2016-08-06 20:08 +0100
  Re: Is it possible to do AJAX coding on the *same* computer? Tim Streater <timstreater@greenbee.net> - 2016-08-06 20:00 +0100
  Re: Is it possible to do AJAX coding on the *same* computer? bit-naughty@hotmail.com - 2016-08-08 04:18 -0700
    Re: Is it possible to do AJAX coding on the *same* computer? Tim Streater <timstreater@greenbee.net> - 2016-08-08 12:23 +0100

csiph-web