Questions tagged [localhost]

On modern day computers, localhost as a hostname translates to an IP address of 127.0.0.1 which is an internal loop-back IP address.

Filter by
Sorted by
Tagged with
9
votes
2answers
5k views

Why does Chrome resolve websitename.localhost as localhost?

I've been using .localhost as a TLD for locally hosted sites that I am working on. Usually when I start a new site I create an entry in the apache virutal host configuration file and then add an entry ...
8
votes
5answers
59k views

How to login as another user in phpmyadmin

I installed phpmyadmin in Win7, and if I type http://localhost/phpmyadmin/index.php in the browser, it will log in phpmyadmin as root user by default. I created a new user but still there's no login ...
6
votes
1answer
12k views

Tomcat serving static content with directory listings

I have Tomcat 7 configured to serve static contents from a directory: <Host appBase="webapps" name="localhost"> ... <Context docBase="/var/projectA/static" path="/projectA/" /> &...
6
votes
2answers
2k views

Must I use a Top Level Domain (TLD) for localhost websites?

I've always used name.dev for local development, but since Google Chrome 63 update, out December 2017, domains with .dev are in the preloaded HSTS list with a rule enforcing HTTPS, no workarounds. ...
5
votes
3answers
11k views

Can't access website from same network

I've setup IIS locally to host a website. I've created a free NOIP account so I can access it with a domain name. It's temporary, so I plan to assign a real domain to it later. I setup port ...
5
votes
1answer
3k views

Can I view my PC localhost test site on my android tablet without uploading it?

I am working on a web site which is running on my PC via XAMPP. I want to test the site on my android tablet (galaxy tab) to make sure that the responsive design behaves that way it is designed to. ...
5
votes
3answers
379 views

Where to buy a domain for my local server [closed]

I have made a website and hosted in my local computer using a static ip Where can i buy a domain name such as www.something.com such that it can redirect to my static IP. So that if i m using a page ...
5
votes
1answer
9k views

Returning 404 error after using RewriteRule on localhost

I would like to use localhost/projects/project1/page/x instead of localhost/projects/project1/index.php?page=x. But after I had redirected the URL in .htaccess using RewriteRule, it returned my 404 ...
5
votes
2answers
344 views

Google analytics giving false statistics for localhost

I'm developing an ASP.NET MVC site and I'm using Google Universal Analytics to test how to use that. Essentially every page has code that calls the Google Analytics JS function and all that is ...
4
votes
1answer
370 views

Migrate facebook app from WAMP Server localhost to facebook

I have developed an app for Facebook and it is currently hosted via a localhost WAMP Server. My question is how can I put my app on Facebook? What would be the steps I must follow? Please note: My ...
4
votes
3answers
505 views

GateIn + OpenAM 9.5.2

I'm actually trying GateIn for my firm and I don't manage to integrate OpenAM and GateIn. I follow all the steps in the GateInReference Guide but I've a problem. The scenario of the problem is : ...
4
votes
1answer
2k views

Apache Virtual Host does not work

I've problems setting up a virtual host on windows7, so that I can develop multiple pages on my localhost. To set up the virtual Host, I've edited 3 Files: httpd-vhosts.conf in apache\conf\extra ...
4
votes
2answers
3k views

Apache2 virtual host localhost doesn't render CSS when offline because of absolute path

I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
3
votes
3answers
733 views

Which is the practical difference between a server and a web server?

Let's consider the following example: I have a solution made with C# on Visual Studio, it has a multi-tier architecture, the different layers are the following: Data Model (Library) Data Access ...
3
votes
1answer
59k views

Forbidden 403 for js file on localhost?

apologies if this isn't the right place to post this. I posted it on Stack Overflow and a user suggested I put it here. Anyway, I've looked all over google and the site and none of the solutions I've ...
3
votes
2answers
3k views

My DNS zone includes a loopback record - do I need it?

My dns zone contains a loopback: localhost IN A 127.0.0.1 Do I need it, and if so why? I can't think of a reason to have it here, especially as - without a dot - it would be localhost.example.com
3
votes
1answer
285 views

Easiest way to preview https over localhost?

I'm creating a site that will be served over https when deployed. That means urls in the links of the site et cetera are https://... But now it's in an emerging state and I preview it on localhost. ...
3
votes
1answer
1k views

WAMP: Properly directing image paths on local server

I'm using ExpressionEngine to build a site, and have a development version running locally via WAMP. Within the root "www" folder, I have an "ee" subdirectory that acts as the root of the development ...
3
votes
1answer
2k views

Redirect subdomain to local PC

I have a home web server which is constantly running. Is it possible to create a subdomain which would redirect traffic to another local PC? For example, I have one Server and one notebook (with web ...
3
votes
2answers
686 views

Google Business Sub Categories for Cleaning/janitorial Company

Is there a place that defines each Google My Business category? I am working on SEO for a Cleaning Company that provides janitorial services to local businesses/schools/hospitals.. Upon obtaining ...
3
votes
0answers
3k views

Can't log in to phpMyAdmin after removing MySQL root password

I get this messege: #1045 - Access denied for user 'root'@'localhost' (using password: YES) I tried changing the password in phpMyAdmin config.inc.php from root to '' but all I got was Cannot connect:...
2
votes
2answers
20k views

wamp installed can't find localhost

I installed a WAMP package on a Windows 7 machine and everything ( Apache, php, mySql, phpMyAdmin) appear to have installed correctly. However when I try to access localhost or phpMyAdmin via the ...
2
votes
2answers
2k views

jQuery not loading from CDN

I have a custom CMS, and for some reason jQuery will not load from the CDN. After sitting on this for days, I remember I made a change the the .htaccess file but not sure if it's really the cause. ...
2
votes
1answer
26 views

Do I need to change the host file of each computer to share a web page on a local network using a hostname?

I want to share a web page on a local network using a hostname. Is it necessary to change the host file of each PC?
2
votes
1answer
32 views

Why does subdomain.localhost work on Ubuntu but not on Debian? (without hosts entry)

I have set up LAMP stacks on both Ubuntu 20.04 and Debian 10 running Apache 2.4. The VirtualHost Files are identical as follows : <VirtualHost localhost:80> ServerAdmin webmaster@localhost ...
2
votes
1answer
152 views

403 forbidden error when IIS is binding ASP web app on port 8080 to be accessed via a subdirectory

Windows Server 2012 R2 / IIS 8.5 I have a number of folders in C:\inetpub\wwwroot; - wwwroot - index.html - analytics (PHP app) - occupancy (PHP app) - rooms (ASP app) In IIS my sites ...
2
votes
1answer
4k views

Videos from Youtube/Vimeo not displaying in iframes

I was giving a webinar about HTML today in Brackets. When showing how to use iframes, all my students managed to insert Google Maps using iframes but no one was able to make the YouTube and Vimeo ...
2
votes
3answers
12k views

Restrict access to IP address range

I’m trying to restrict access to a web resource to the intranet of a company via .htaccess. Unfortunately, the approach via Allow from … isn’t working for me and and I don’t understand subnets well ...
2
votes
5answers
13k views

How do I access PHPMyAdmin after install in Ubuntu?

I installed Apache and then PHPMyAdmin on my Ubuntu server, but I have not been able to access PHPMyAdmin at http://localhost/phpmyadmin/. http://localhost is working however.
2
votes
2answers
15k views

Virtual host not working in Windows 7 XAMPP

I am using Windows 7 and XAMPP. I want to create a virtual host so I added 127.0.0.1 myawesomeproject to my hosts file (C:\Windows\System32\drivers\etc\hosts) like this: # Copyright (c)...
2
votes
2answers
468 views

Problems with phpmyadmin

I already worked a lot with wampserver but it's the first time i have a problem with it. After I downloaded it wanted to create a database in phpmyadmin, and then it says: "Forbidden. You don't ...
2
votes
3answers
6k views

How to handle CNAME host redirect to virtual directory?

I have an internal website and virtual directory http://server2012/logs. I created a CNAME on my DNS server as LOGS -> server2012. I would like to set it up so that http://LOGS redirects to http://...
2
votes
1answer
80 views

Handling request after installing MAMP (no DNS setup yet)

I've just installed MAMP on my mac machine and checked the server is working by looking at localhost. I looked up my IP address by ifconfig. When I use another machine, I still can't get connected to ...
2
votes
1answer
205 views

How to test my website from my phone on the same local network? 127.0.0.1 doesn't work

I use a text editor to develop a website (Brackets), I can test on Chrome and change screen size on Chrome, but I want to test on my actual iPhone. If I try to go to the address : http://127.0.0.1:...
2
votes
1answer
1k views

Need a generic way to create SEO friendly URL

I have searched a lot and implemented many many Regular Expression in my .htaccess file but can not succeed. How do I find a generic way that make my URL SEO friendly? Currently this is in my ....
2
votes
1answer
875 views

Magento - Unable to access remote site but able to access a simple index.html file

I'm building a store (magento 1.6.0.0-rc2) and have a home server to host the site. It is behind a modem/router with redirection of port 80 and 3000 active to server box. 1. I can access the front-...
2
votes
1answer
123 views

Drupal - after installation the website invisible

I just installed Drupal. But after installation I can't see my installed site. Upon visiting the URL http://localhost/drupal-7.0/ in my browser I do not get the web page as expected but see files and ...
2
votes
0answers
368 views

Set default file and folder permission for new files and folders - apache , ubuntu

I checked the file and folder permission of /var/www/html/ using stat -c '%A %a %n' * Folders : 775 Files: 664 drwxrwxr-x 775 includes -rw-rw-r-- 664 index.php -rw-rw-r-- 664 maintenance.html ...
2
votes
0answers
774 views

Updating address bar with new URL on local .html file

I'm having an html file somewhere placed on my computer for example file:///C:/Users/index.html Is it possible to manipulate that URL (using code inside that file) in a Browser which opened the file? ...
2
votes
3answers
311 views

Mod Rewrite question

Is there a way to rewrite http://localhost/embed/player.swf?file=http://www.youtube.com/watch?v=7yKDhm4_-90 to something smaller? or is there a way to change this into http://localhost/embed/...
1
vote
1answer
10k views

MAMP not working as 'localhost' but works with "127.0.0.1"

I just installed MAMP on Mac OSX 10.8.2. When it is started, I'm not able to access the server through http://localhost:8888 but when I visit http://127.0.0.1:8888/ and it works fine. Why is it so? ...
1
vote
2answers
298 views

Connecting to my new server

I have bought the hosting and now I have successfully created a database and new user and I have enter phpmyadmin from cPanel to create database. Now everything is done. But where can I find ...
1
vote
3answers
5k views

Why isn't my PHP file running and instead Apache is offering it for download?

I recently installed Apache and later installed PHP too. When I browse to http://localhost/index.html it displays the default Apache page "it works". But when i try to run http://localhost/phpinfo....
1
vote
2answers
3k views

File permission problem with codeignitor project using xampp

I am currently using Codeignitor as my PHP framework with XAMPP. I always keep all my files in c:/xampp/htdocs/. The settings are working fine in my own localhost machine. But when I load the same ...
1
vote
2answers
957 views

getting mod_rewrite to work on Mac OS X

I'm trying to get mod rewrite to work on my Mac. This is the content of the .htaccess file: <Files *\.ini> order allow,deny deny from all </Files> RewriteEngine on RewriteRule .* ...
1
vote
1answer
29 views

nginx how to configure nginx to nevigate to a subpage for reactjs app

I have following nginx setup where I used proxy configuration to redirect my landing page (built with reactjs) to my domain, say (www.example.com), here is my nginx configuration server { listen 80; ...
1
vote
2answers
329 views

Can I test Google adwords conversion tracking on my local environment site?

First time setting up google conversion tracking for my client's custom form. I'm working locally on my localhost. I created a new conversion goal, configured custom tracking event, linked through ...
1
vote
2answers
153 views

Is there a way to share my joomla localhost website to someone else from the same network?

So I have this website locally. and I would like that my coworkers can look the website, we are in the same network but is there a way to host the website?
1
vote
2answers
481 views

Blocking Adsense clicks on my computers [closed]

As a webmaster what I need is that I should be able to see the Adsense ads on my sites but if I click by mistake then it should not make a real click just to abide by Google Adsense policies. This ...
1
vote
1answer
496 views

Local site with xdebug enabled is very slow

My situation. I have local site with magento on Open Server, I'm working with Sublime Text 3. Now I'm need to use xdebug (if there is some alternative with breakpoints and ties with IDE, I'm open). ...