Set server_name
to the IP address, eg:
server {
listen 80;
server_name 0.1.2.3;
// other stuff
}
You could also leave it out, because the default in ngninx is an empty string. But then all those pieces in WordPress that don’t validate $_SERVER['SERVER_NAME']
and similar values … will just break.
See ticket #25239 for the progress on this front.
If only WordPress had a Request
object, like everyone else. Then it would be easy to prepare all these global values. See Symfony for an example.
Related Posts:
- Moving to a new domain in the same server
- Installed WordPress Location
- Moving WordPress from Root to a subfolder
- How to completely remove Python from a Windows machine?
- Homebrew install specific version of formula?
- How to install MinGW 64 on windows 10
- Conda version pip install -r requirements.txt –target ./lib
- Conda version pip install -r requirements.txt –target ./lib
- PackagesNotFoundError: The following packages are not available from current channels:
- How can I create an MSI setup?
- Android Fastboot devices not returning device
- How can I convert my Java program to an .exe file?
- Changing the wp db prefix after installation?
- Things to take care when moving from hosted wordpress to self-hosting
- the correct order of manual install WP and SSL on server
- How do I install two versions of WordPress on 1 server?
- wp core install database connection error
- Steps to debug on a blank screened wordpress install
- Installed successfully; home page still redirects to install.php
- How to import WP XML file automatically on installation?
- Trying to install WordPress on WSL Windows 10, and running into issues with wp-cli and “wp db create”
- Cannot access WordPress install on subdirectory of drupal site
- Programatically Creating Initial WordPress Site
- Install wordpress in backend with Existing html website alive
- Multiple Multisite networks on the same domain?
- Subdomain and subdirectories together in one installation
- Two domains on one WordPress Installation
- How would you detect if WordPress is installed in a subdirectory (not root)?
- When WordPress Does Not Provide an .htaccess File for New Multisite Sites because of CPanel Fantastico Auto-Installer?
- Is there any plugin hook that I can latch onto once a site is freshly installed?
- Quickest Way Besides FTP to Upload WordPress Files to a Web Server?
- Moving to directory creates path problems.. how to solve?
- How to use if condition to change $table_prefix in wp_config.php
- WordPress installation does not get completed in WAMP server
- Should I delete automatically-created files before installing WordPress?
- You appear to have already installed WordPress. To reinstall please clear your old database tables first
- Change WordPress directory
- No option to update WP in client’s backend
- wp-cli installation
- Page not found error shown while installing wordpress on IIS server
- How to customize WordPress Plugin installation?
- How can I completely disable a WordPress installation?
- How to create wordpress install template/image?
- Why does my localhost/wordpress not have a Link to Login Page
- WordPress composer issues
- What happen after new plugin get installed in term of permissions?
- Other than WP-CLI, is there a way to install WordPress via the command-line?
- WordPress database error on (fresh) reinstall
- Install with docker – can’t access port
- WP Installer Redirects to /wp-admin/core/install.php
- WordPress installation from live site to localhost
- What is a wordpress instance [closed]
- PuTTY is glitching out when I try to install wordpress
- Can I install a WordPress site locally from a tar.gz file?
- How can I deploy my InstantWP site to a live website?
- All links in WP blog redirect to main non-WP site
- How to effectively handle the problem of installing WordPress locally for each new project?
- Local Installation: install.php offered to download instead of running
- WordPress manually installed on a remote server
- WordPress is already installed
- Installed WordPress without configuration screen
- WordPress System Requirement for Older Versions?
- On install, automatically create page and set it as front page
- Create a development subfolder for my WordPress website
- What’s the best way to install WordPress?
- Forbidden localhost error and error establishing database
- EC2 WordPress install asks for connection info when auto-updating
- Moving from subdirectory and subdomain -> root
- Creating a sub folder inside a root installation?
- Installing plugins on IIS-hosted site [closed]
- WordPress 3.1 Install Error
- Transferring from “Populate” CMS to WordPress
- Should I use two single WordPress installations because of SEO?
- wordpress icons and gui not display while installing wordpress http://server_ip /wp-admin/install.php
- Is there a way to check which files are part of vanilla WordPress?
- How to install multiple wordpress site on localhost
- Trying to make my home-made WordPress website visible by public network
- Install wordpress without affecting clickfunnels
- wp-cli setting home and siteurl to site.tldtld (double TLD)
- My wordpress doesnt show up
- Error during installation
- Accidentally re-installed wordpress
- Reporting Broken Theme event though upload was success
- Fastest way to install a multisite?
- How to install WordPress on root domain and Php script on subdomain?
- 2 domains 1 WP instalation in Cpanel
- Disable redirect to install.php
- db.php, is it a legit file [closed]
- Moving site made easier
- New WP installation due to language issues
- Can figure out how to get wordpress to go .com not .com/directory
- WP installed is asking to install if typed domain.com
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- Trying to increase WP Memory Limit
- How does a WordPress installation become ‘alive’?
- WordPress 4.1 update broke theme
- New WP installation on Hostgator domain but not working
- Correct folder & file permisson for WordPress
- Host Php script from codecanyon on wordpress
- Backend working but not front