Localhost is an address/term used for testing connection to the local host (current computer) used for some network troubleshooting

learn more… | top users | synonyms

1
vote
1answer
424 views

PHPMailer script stopped working with cryptic SMTP error messages

I am trying to send mail in a PHP script via the PHPMailer library. The following code has successfully sent emails in the past without warnings: function mail_attachment($filename, $path, $mailto, ...
1
vote
1answer
90 views

Bingbot spoof localhost ip

So here is a fun one. I'm getting bingbot requests at a certain time everyday that kill the server. Here is the request: 127.0.0.1 - - [14/Sep/2013:08:18:49 -0500] "GET / HTTP/1.1" 200 82810 "-" ...
3
votes
1answer
235 views

How to reset and persist the hostname and FQDN of an WIdows Azure Centos instance?

How does one reset a hostname and domain name (FQDN) to localhost.localdomain on a Centos 6.2 Azure Instance? I've tried editing /etc/sysconfig/network, /etc/sysctl.conf, setting the hostname ...
-2
votes
2answers
226 views

Point IP Address to /var/www/ localhost

I am paying for a Virtual Private Server with Linode. I recently set it up with apache to host two different websites. Now that I've added the sites, I can no longer access my index.html file at ...
1
vote
2answers
114 views

Apache 2.2 server stopped after adding code for virtual domain name

i am developing a website on Apache 2.2 local server. The site is still in development stage. I wanted to get a custom domain name for my website, so that i could access it as "mysite.local" or ...
2
votes
6answers
10k views

SSH login using public key failed

On localhost running sshd service. Created two pairs of rsa keys for root and user1 using ssh-keygen. Copied from root/.ssh/id_rsa.pub to user1/.ssh/id_rsa.pub. Changed permissions to 600. Tried ssh ...
0
votes
2answers
386 views

Don't manage to set up iptables rules for client/server socket exchange on localhost

I am a client/server-IPC-iptables near-newbbie. I have made my homeworks deeply during one year and thought this should work : # cat /root/firewall/iptable | nocomment iptables -F iptables -F -t nat ...
4
votes
1answer
868 views

Cannot loopback to localhost php gateway causing nginx to timeout while setting up firewall with ufw

I'm setting up ufw for the first time. Using Ubuntu 10.04 LTS on an OpenVZ VPN and have the following rules: sudo ufw allow 22/tcp sudo ufw allow 25/tcp sudo ufw allow 53 sudo ufw allow 80 sudo ufw ...
0
votes
0answers
25 views

How do I use pfctl to forward certain domains + ports to domains:80?

I did man pfctl, but I have to admit, it's way over my head. I'm not a server admin. I know my way around *NIX, but pfctl is confusing to me. From my understanding tho, I can use that to make ...
0
votes
2answers
639 views

Hosts file map localhost to existing domain not subdirectory* updated

I am locally developing a website via MAMP and rather than messing with the changing all of my links and etc later on I opened up etc/hosts and added this line 127.0.0.1 localhost mysite.com so ...
2
votes
1answer
3k views

DNS server can't resolve localhost name

I'm trying to set up an Apache server on my RHEL6.4 vm and can't because dnsmasq can't recognize the hostname for some reason: nslookup rhel64.example.com Server: xxx.xxx.xx.1 Address: ...
0
votes
2answers
262 views

Can the name “localhost” in a virtual machine be mapped to IP of host machine?

I have a virtual machine image (using Virtual PC) of Windows XP/IE6 from Microsoft's "modern IE" website. This virtual machine is hosted by a Windows 7 machine. I have a local web application on the ...
0
votes
0answers
35 views

Best way to export / import an older mediawiki setup [duplicate]

I have a client who needs to export an entire setup for mediawiki (images/site/extensions/database/ect) so I can literally take the exported version, copy it into my htdocs (or www/ folder), import ...
1
vote
2answers
5k views

“/etc/apache2/httpd.conf: No such file or directory” error after Ubuntu upgrade

So I upgraded Ubuntu and I went to 127.0.0.1 in Chrome and got "Oops! Google Chrome could not connect to 127.0.0.1" so I restarted Apache but was met with this error: apache2: Syntax error on line ...
1
vote
1answer
51 views

reroute tcp connections to remote server so that they connect to localhost instead

I have a script that tries to connect to a remote mysql server and I want to modify the vm it runs in so that instead of the remote ip, the connection will be forwarded to localhost. Can anybody tell ...
1
vote
1answer
427 views

Local SSH connection to Gitlab not working

I'd like to be able to clone, push and pull (via SSH) on my Gitlab-Server from/to itself. Currently, when try to clone a git repository locally from my server I get this: jacob@server: git clone ...
0
votes
1answer
42 views

Apache not serving HTTPS to localhost

This just started being a problem (likely after a software upgrade?). The relevant config bits are: <VirtualHost *:80> ServerAdmin webmaster@singpolyma.net ServerName singpolyma.net ...
1
vote
1answer
6k views

Why is Apache returning Service Temporarily Unavailable on local host?

Ok so I am a bit new at all this. I was trying to get php and apache2 running on my localhost and I don't seem to be able to get it to work. I keep getting this message when inputting localhost into ...
0
votes
1answer
98 views

Intranet Ip - Access from Custom Domain

I have setup a local intranet in my office using IIS7 (Windows 7 Machine), currently it can be accessed through the PC's static IP, however I would like it so that internally it can just be accessed ...
0
votes
2answers
220 views

HOSTS ignored when disconnected [closed]

Problem I’m seeing a strange and extremely frustrating problem. Any system that is not connect to the Internet (Windows 7 shows the no Internet access icon because it cannot constantly ping ...
-5
votes
2answers
62 views

Accessing localhost from another system [closed]

Every answer I've found about this is too generic and assumes both systems are unix-like. I have localhost set up on my computer (Ubuntu) and I was wondering what I need to do to access it from my ...
1
vote
0answers
120 views

vhost working but not finding index.php

Its my first time that i have a vserver with plesk - i always deleted plesk and worked without it because i didnt liked it but now i try with and it doesnt work as i want it. installed magento here: ...
0
votes
2answers
188 views

Iptables allow only localhost and gmail

I use this in iptables: (want to allow 25 port only for localhost) iptables -A INPUT -p tcp -s localhost --dport 25 -j ACCEPT iptables -A INPUT -p tcp --dport 25 -j DROP It works perfect, but I ...
-1
votes
2answers
71 views

howto serve different local index page with multiple virtualhosts [closed]

Objective: do http://test.local and get the index from testsite, do http://l4.dev and serve the index from lara4. What I don't want is the first index from the virtual host listing it can find How ...
1
vote
1answer
2k views

ssh localhost exits with “debug1: Exit status -1 ”

I am trying to setup ssh and ssh to localhost on Cygwin, but I am getting the following error. Any suggestions will be appreciated: $ ssh -v localhost OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012 ...
-3
votes
1answer
84 views

What are the drawback if I use 127.0.0.1 instead of 127.0.1.1 in my host file?

Ubuntu default host file is something like 127.0.0.1 localhost 127.0.1.1 myhostname Will there be any drawback if I change to: 127.0.0.1 localhost myhostname
-1
votes
3answers
64 views

Root access issue from localhost [closed]

I have a strange root access issue - I'm able to login as root via SSH but I'm not able login to the physical machine via terminal. Some more info: - running CentOS 6.4 - password authentication ...
0
votes
4answers
509 views

Windows 7 resolve localhost name with ipv6 instead of ipv4 [duplicate]

When I ping localhost I can see that localhost name is resolved as :::1 instead of 127.0.0.1. Do you know how to solve this? I need a ipv4 resolution of localhost for Tomcat server. I could quickly ...
0
votes
1answer
52 views

Subdomain on local machine using apache

On my local network, I have a server that goes by the name of telly, and can be connected with locally on http://telly. I am trying to set up a subdomain on that machine, say sub. I have added a ...
0
votes
2answers
196 views

VirtualDocumentRoot & localhost

Currently this is my httpd-vhosts.config file NameVirtualHost *:80 <VirtualHost *:80> VirtualDocumentRoot /Users/Gabri/Sites/%2/%1/build </VirtualHost> However I would like to have ...
-3
votes
2answers
614 views

Apache2 : Xampp is not running

I have apache2 and Xampp both installed in my server now my problem is When i stop apache2 from /etc/init.d/apache2 stop and tried restart xampp like /opt/lampp/lampp restart i am getting the ...
0
votes
2answers
2k views

How to access localhost with an internal IP address when outside of network [closed]

I have my development environment on my local system with XAMPP(Windows 7). During dev. work I use my system's IP address (i.e 192.168.XX.XXX of Internal Network) when I am inside the network, it ...
-5
votes
3answers
231 views

How can I locally broadcast a domain name?

So if I edit my /etc/hosts file, I can access localhost as a domain name such as myapp.dev or whatever. Is there any way I can broadcast this domain so that others who are on the same wifi network ...
0
votes
1answer
38 views

LAMP not working after php.ini change (even if resetted)

My LAMP machine on Ubuntu 12.04 was working fine, then I tried to modify the etc/php5/apache2/php.ini file opening nautilus through the terminal with sudo nautilus. I have edited this line: ...
0
votes
3answers
621 views

XAMPP apache localhost - browsers point to the wrong port even after I changed Listen port back to 80

Running Windows 7. Got a weird problem - I used to use port 8080 for my apache on XAMPP as somehow I couldn't get it to work on 80. I did that by changing the Listen port of ...
0
votes
1answer
79 views

server localhost to get access to /admin/* pages and block all others

Requirements: every one in the local network can access all pages except /admin pages. only localhost should have access to the /admin pages. how to write webfilter for tomcat 6 or other ...
0
votes
1answer
217 views

How to add a CNAME for localhost in BIND 9?

I am doing web development and host the local versions of sites on my machine. I have Linux Slackware 14.0 with BIND 9.9.1-P3. In my named.conf I have this: zone "localhost" IN { type master; ...
0
votes
2answers
231 views

Error message: Host 'server1.MY_DOMAIN.TLD' is not allowed to connect to this MySQL server

I have a web and mail server running Ubuntu 12.04. I installed iRedMail and had it running fine, but this morning mail was not connecting and none of my sites worked. I checked some logs which told me ...
0
votes
0answers
219 views

RHEL6 Apache mod_fcgid PHP localhost

I have disabled mod_php on a RHEL6 apache server and installed mod_fcgid. PHP test scripts (info.php) work on the localhost. I know this since info.php returns the apache api as Server ...
0
votes
4answers
2k views

.htaccess working on remote server but does not work on localhost. Getting 404 errors on localhost

MY PROBLEM: When I visit localhost the site does not work. It shows some text from the site but it seems the server can not locate any other files. Here is a snippet of the errors from firebug: ...
0
votes
2answers
298 views

How can I remove trailing slash with .htaccess on localhost with UniServer [duplicate]

I want to remove the last trailing slash of a URL. For example: I want to http://localhost/mysite/page/ rewrite to http://localhost/mysite/page. I'm using this code on my localhost .htaccess. ...
-2
votes
1answer
49 views

Can't acces localhost through http://localhost/ on tomcat

I am having trouble accessing localhost through http://localhost and http://127.0.0.1 But i can access both when i use https. https://localhost Why do you think this is? The web server is ...
13
votes
4answers
22k views

Is there a way to get wireshark to capture packets sent from/to localhost on Windows?

Is there a way to get wireshark to capture packets sent from/to localhost? When I monitor traffic going from my computer to another, or from another computer to my computer, then it works. But ...
2
votes
2answers
8k views

Accessing localhost on IIS7 from another computer on the network

I recently upgraded computers to Windows 7 Professional and am running IIS7. When I'm on my computer I can easily access localhost through my web browser but when I try from another computer on my ...
2
votes
2answers
185 views

When using netstat on a listening port what is the difference between localhost:6666 and [::]:6666 in 'Local Address' field

Using ubuntu 11.04, I run netstat -nplt the results for local address may be localhost:6666 or [::]:6666 What is the difference? I believe that the [::]: binds the service at ...
-3
votes
1answer
260 views

How should one go about hosting a local test website in IIS8, and testing http bindings in browser? [closed]

Given the latest version of IIS at the time of writing is IIS8, how would one go about adding a new site through the IIS manager, set up HTTP bindings, and test the setup in a browser? This ...
1
vote
2answers
46 views

Aliasing a domain on Apache

I am developing a website on my own development servers. The client is loading some fonts that are white-listed on just their domain, the problem is that during development I cannot see them on my dev ...
0
votes
1answer
159 views

Apache suddenly stopped working

After using apache in a local dev setup it has suddenly stopped working. I have tried pinging a previously used custom domain and I'm not getting anything. I have checked the syntax its correct ...
-1
votes
2answers
158 views

Why does 127.0.0.1 point to virtual host?

I have a Virtual Host set up in apache to run CodeIgniter: <VirtualHost *:80> DocumentRoot "/var/www/CodeIgniter" ServerName codeigniter.loc </VirtualHost> Problem is, when I ...
0
votes
1answer
46 views

How do I only serve on localhost through apache2? [duplicate]

Possible Duplicate: TOR: hide my site in clearweb‏ I'm trying to serve on localhost only but every time I find a way to do it, it always says to edit http.d I cannot find http.d. Can ...