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
0
votes
0answers
7 views

Nginx with Docker. Not available from localhost, but available from network [migrated]

I am doing a relatively simple Docker setup: Nginx, PHP-FPM, MySQl. My issue is that the server works for the IP address -127.0.0.1, serving the index file that's in the public directory. However, ...
2
votes
1answer
50 views

Why can't I access an Apache web server on a local network with my phone?

I have a website that needs to work only on my local network, I am hosting it on Apache, I have already done all the steps to make it accessible from any PC and laptop, but for some reasons if I try ...
0
votes
0answers
14 views

"Cannot Modify Header" error when moving MediaWiki to a subfolder on localhost

I installed, configured, and populated MediaWiki on localhost and have been maintaining my wiki locally for 4 years. Today I simply dragged the mediawiki folder into a subfolder I created for better ...
1
vote
1answer
98 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; ...
0
votes
0answers
19 views

Rewrite local file links

I have *.html files accessible through file:// protocol in browser. Within these files are links to resources, like <img src="file:///c:/users[...]pic.jpg">. This all works fine for ...
2
votes
1answer
36 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 ...
1
vote
1answer
79 views

Localhost website not accessible from Public IP despite port forwarding

My tiny office has 1 router, which is connected to ADSL line on one end and my laptop on other end. In office, laptop's local IP is 192.168.1.2. On office router, I have setup port (22) forwarding for ...
2
votes
1answer
249 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 ...
1
vote
3answers
6k 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....
3
votes
3answers
742 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 ...
0
votes
1answer
24 views

Full local server preparing for use full site backup file from hosting

To install CMS from the beginning locally we need LAMP web service stack. In ex. in our Ubuntu OS, usually in var/www/html path will be our site (domain name folder).. But what from start I have to ...
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 ...
1
vote
1answer
64 views

WordPress redirecting to itself

I have the following error in my apache2 error log (Ubuntu 18.04, local LAMP dev environment, PHP7.3), that I believe is causing a The page isn’t redirecting properly error: Apache Error Log [Thu Aug ...
8
votes
5answers
60k 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 ...
3
votes
2answers
788 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 ...
2
votes
1answer
30 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?
1
vote
2answers
343 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 ...
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:...
1
vote
2answers
160 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?
2
votes
1answer
224 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:...
1
vote
1answer
958 views

Put WAMP online but hide its server index page

Currently I'm able to put WAMP online and access all my projects from other devices using the host IP address. But what displeases me is the fact that even from other devices, the server's index file ...
2
votes
0answers
375 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 ...
1
vote
2answers
483 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
0answers
381 views

XAMPP phpMyAdmin - different users access same MySQL database [closed]

I have created a MySQL database on MyPHPAdmin (XAMPP 3.2). This is for a group project and I need to have different users access the same database. If they have XAMPP installed on their computer, is ...
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 ...
6
votes
2answers
3k 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. ...
1
vote
1answer
9k views

How to access a website through a Local Area Network that localhost change to a domain name

I have a problem with accessing the website that I created on XAMPP server from another device on the network. I already changed the HOSTS file: # localhost name resolution is handled within DNS ...
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 ...
1
vote
2answers
147 views

Hosting an apache server from my mac

I created a website with PHP and JS. I want to send my IP address to a friend who is in another state and let him see it. My site is loaded by xampp. How could I do this?
2
votes
0answers
819 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? ...
1
vote
4answers
53k views

Xampp not displaying PHP pages in htdocs due to "failed to open stream: Permission denied"

I installed xampp this evening and none of my PHP pages will display. I am storing all my pages in the htdocs folder as directed too and calling via http://localhost/index.php and nothing appears? All ...
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
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. ...
3
votes
1answer
316 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. ...
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/...
5
votes
2answers
351 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 ...
1
vote
1answer
1k views

How can I set my site root from: localhost/mysite/ to: localhost/mysite/view/ via htaccess

hi just wondering if this is possible, when you access my default site directory localhost/mysite I want to set the path to render localhost/mysite/view/ all my HTML pages will be rendered here just ...
1
vote
0answers
713 views

127.0.0.1 as referrer url

I have written some code to my website that shows some information about online users to admin user. one of these information was the host of referrer url of the user. I saw some 127.0.0.1 in the ...
0
votes
1answer
705 views

Setting up GetSimple CMS with Nginx

I'm quite a noob in web, I'd like to setup a Linux(Debian) web server and decided to use GetSimple CMS and Nginx since I've found out that they'd give the best performance by using smallest resources. ...
1
vote
0answers
4k views

MVC4 App opens with directory listing and gives a 404 for any direct URL's entered in the browser

I've just deployed a previously (on my local IIS) working MVC4 app to IIS 7.5 on the dev server. After tweaking this and that - one knows how these things get forgotten - the app finally launches, but ...
5
votes
1answer
10k 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 ...
1
vote
1answer
506 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). ...
0
votes
2answers
202 views

Running site locally [closed]

Okay, this must be easy. I have the copy of /public_html folder of a website on the local disc. How do I run this site locally? --- Edit 1 --- The site is not static, there are lots of .php files in ...
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.
1
vote
0answers
742 views

XAMPP - Typing “localhost/my_site/” into URL not working [closed]

Using XAMPP installed on Mac OS X Mavericks, I've got the servers running and I use my Firefox Dev Edition to navigate to "localhost/my_site/". Previously, I've been successful with other folders for ...
0
votes
1answer
1k views

Grant Permission to File Folder

I am making a website, and I want the users to be able to access a file folder. I have a link to a folder. When I do this locally, all works fine. But when I upload it to my site, I get: Forbidden ...
0
votes
2answers
1k views

How to fake domain on OS X?

I have added an entry to my hosts file which allows me to have localhost URLs like the following: http://mydomain.dev/~macuser/mydomain/index.php But I would like to somehow map this host entry to ...
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. ...
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 ...
1
vote
0answers
1k views

Apache 404 Issue after upgrading from Mavericks to Yosemites

Good afternoon fellow StachExachangers, Background story: I have recently upgraded my macbook pro from Mavericks to Yosemites, everything went well except my local development environment got ...