i could not find a clear answer on how to access my own localhost for development environment to test http services. So far i have tried doing http://localhost:8080/Folder/this.php and it goes www.localhost.com ??? i have checked that the access port is 80 in config file.
here is a code fragment that i wanted to implement on
function TMSSvc($http,$rootScope){
this.loadBlogs= function(){
$http.get("http://localhost:8080/webService/getBlogs.php").success(function(result){
$rootScope.$broadcast("TMSApp.blogs",result);
});
}
}
Can you help me? I am a beginner in this . Thank You
If you are on Windows you need to go to the file:
C:\Windows\System32\drivers\etc\hosts
If you are on Linux or Mac:
/etc/hosts (i.e. sudo nano /etc/hosts)
Then uncomment the line:
# 127.0.0.1 localhost
So it reads:
127.0.0.1 localhost
You should then be able to access your local server using localhost.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.