Apache server is the most popular web server on the internet because of its flexibility, stability and features it serve.
By default, Apache web server listens to incoming connection and bind with port 80 and port 443 for the secured TLS connections. Every IT person knows this and that’s great. But the thing is, the hackers even know about the same. And, sadly your Apache web server is vulnerable to port 80 attacks.
What if you want to secure your Apache web server by changing the port to non-standard one?
In order to instruct Apache web server to bind and listen for web traffic on other ports than the standard web ports, you change the port number.
But wait, while login to your admin panel, you can see admin not working after changing port number in Magento 2. By any chance, after changing port number, you may face the error ‘404 admin not found‘ in the admin section of Magento 2. You have to solve this error any how to start working on your Magento 2 store.
Today, I’ve come up with the solution to admin not working after changing the port number in Magento 2 issue.
Steps to Solve Magento 2 Admin Not Working After Changing Port Number Issue:
- Go to httpd.conf file of C:\xampp\apache\conf\
- Find the word <Directory />
- You can see
<Directory />
AllowOverride none
Require all denied
</Directory>
Just replace none with All in AllowOverride.
That’s it! However, remember that this solution is for the apache server only.
Let me know if you have ever faced the issue of admin not working after changing the port number of your Apache server. Also, do share your queries regarding the post in the comment section below, I would be happy to answer.
Get Weekly Updates
Never miss Magento tips, tricks, tutorials, and news.
Thank you for subscribing.
Something went wrong.