jQuery ajaxy, history app not loading on localhost - php

I would like to use ajax plugin for loading content with hash change.
LINK to plugin webpage http://balupton.github.io/jquery-ajaxy/demo/
It is working on external server
LINK http://revelier.home.pl/SzymonDz/demo/
But on local how when I use xampp 3.1.0.3.1.0
Im connecting by port 8080
Normally there is no error on my server
but locally it load only active state
and ERROR
GET http://localhost/history/demopages/bananas.html
Like it would lost one "/" between demo and pages -> demo/pages
Can some1 help me with this problem?
Any help would be appreciate:)

Solved, had to made localhost without 8080, found out which program took my 80 (thats why i had 8080). Skype , settings, advanced, ports and uncheck "use port 80 and 443". Now script work.

Related

WAMP my own internal ip doesn't work on browser

I have installed WAMP and my computer ip is http://192.168.1.142/
When I entered it in browser I got nothing, my WAMP server doesn't see this ip
I got error :
**This 192.168.1.142 page can’t be found
No webpage was found for the web address:
192.168.1.142 HTTP ERROR 404**
http://prntscr.com/fx1mri
Tried configure httpd.conf Want add there row Listen 192.168.1.142:80 and when I run restart WAMP it's not green , means apache doesn't run ,
How correct this ? Why my local IP can't reach in my browser ?
Probably there will be 2 approach to solve this-
You need to provide the ip-address instead of localhost in your code.
Try not to use Skype at the same time since it uses same port number.
If it's your local computer I'll recommend you to use "http://localhost" or "http://127.0.0.1". Prefer localhost.
If you want to use some other cool hostname you should add it to your (windows)hostfile %SYSTEMROOT%\System32\drivers\etc\hosts
Example of input:
127.0.0.1 localsecure
Other programs like skype and torrent are usually using the same ports. Go to your httpd.conf and change listen to for example 82 and the servername to localhost:82(the port is always the same as the value of listen). And than you can use localhost everywhere for example your phpmyadmin would be:
localhost:82/phpmyadmin
And the directories:
localhost:82/..
Credit: ndsmyter

Localhost refused to connect Xampp issue

i am trying to connect my site from others computers on local network. I can access the site from my system IP address but issue is this when i entered the username and password it will redirect the page from 192.168.0.2/ppp/login to localhost/ppp/auth/login and shows thee error localhost refused to connect.
localhost usually points to 127.0.0.1 . So, if you are getting redirected to localhost/login/ppp then the issue with your site's code. Don't redirect to http://localhost/login/ppp. Just do a redirect to /login/ppp instead.
The reason connection is refused is because the other PC doesn't have XAMPP (or any other web server) running on it.
your only need to change the config.php file in controllers. write your IP instead of localhost. Your code will run properly on network.

Why do I need to use 'localhost:8080' instead of just 'localhost' to connect to my server WAMP?

I am currently using WAMP server on my Windows XP SP2 system. I just want to know why do I need to use localhost:8080 instead of just localhost to connect to my server-WAMP? I'm not that interested in this :8080 stuff.
So if you guys know why this happens, or how to exclude :8080 from the address, just help me through. Thank you very much by the way. Have a nice day.
Notice: Please don't tell me to switch to XAMPP. I know it works well.
This happens because your server is listening on port 8080, and not on port 80 which is the default (so when you type localhost you mean localhost:80).
So, you need to change your configuration to make WAMP listening on port 80. You find here how to do this: How to change port number for apache in WAMP.

WAMP Server :Project not running on localhost

I have installed WampServer Version 2.4.9 on windows 7
Created a folder in wamp/www/myproject/index.php ,I am using user account(not admin account).The index.php conatins HTML code only,I tried with index.html too,but nothing worked.
The problem:
When I run localhost or phpmy admin by typing localhost in browser URL space then it shows the main window and then i click on project and get these messages:
This webpage is not available
when I click on more button in browser
The server at myproject can't be found, because the DNS lookup failed. DNS is the network service that translates a website's name to
its Internet address. This error is most often caused by having no
connection to the Internet or a misconfigured network. It can also be
caused by an unresponsive DNS server or a firewall preventing Google
Chrome from accessing the network.
I tried running from admin account too but that also did not worked.I tried running the application with off state of firewall too but that also did not work
EDIT:
I uninstalled xxamp ,I have apache tomcat too in my system that is used with JSP ,it takes 8080 port.but it is not running currently.The default port for wamp is 80,I tried running it on 81,8080,but both the thing didn't work.Skype also take port 80 so I exited from skype too...
when i type localhost/myproject,It worked.
but when I type localhost and then main page of wamp comes...and when click on localhost then the dns lookup failure occur that is written initially
check whether port 80 is free. You can check it in your apache conf file.

Weird PHP not displaying over local ip address

I have the following setup below:
Amazon EC2 instance.
IPs:
192.168.1.200 = eth0 = x.x.x.x public ip address
192.168.2.200 = eth1
Apps:
Apache
vhosts:
-domain.tld
PHP
The strange part is this. When I try to browse domain.tld over public ip address, its working fine. But when I browse it through 192.168.2.200, it will keep waiting until no display coming out in the browser. A simple index.php with a text "test" inside is working fine. Only when the php codes like phpinfo() will not be working.
Do you have any idea what could be the problem in php or apache or my network? I have already open all ports on the firewall but the problem still persist.
Thanks.
I found the issue - it's due to incorrect network routing table on the EC2 server including blocking of traffic that rectified through playing security settings.
Thanks to your comment #Dagon.

Categories