How can I make my web server public?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How can I make my web server public?

Postby ara » 15. June 2021 15:54

I have mounted a CRM in xampp, so far I can log into my Windows Server 2012 machine normally, logging in with localhost, but still can't make it visible outside of my network, can anyone tell me what settings are needed?

I have already modified the file httpd.conf listen 0.0.0.0:8080
And also I have already added the code in httpd-xampp.conf:


#
# New XAMPP security concept
#

# Close XAMPP security section here
<LocationMatch "^/(?i:(?:security))">
Order deny,allow
#Deny from all
#Allow from ::1 127.0.0.0/8
Allow from all
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
#Deny from all
#Allow from ::1 127.0.0.0/8
Allow from all
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

Any help will be welcome, thank you
Last edited by ara on 15. June 2021 17:25, edited 1 time in total.
ara
 
Posts: 3
Joined: 15. June 2021 15:34
XAMPP version: 7.3.28 / PHP 7.3.28
Operating System: Windows

Re: How can I make my web server public?

Postby Altrea » 15. June 2021 16:29

ara wrote:I have mounted a xampp CRM, so far I can log into my Windows Server 2012 machine normally, logging in with localhost, but I still can't make it visible outside of my network, can someone tell me what configuration is needed?

None. XAMPP won't restrict the public access of your own webapplications. XAMPP only protects important parts of XAMPP (like phpmyadmin) because they are not securely configured for public access.
So you should undo your changes made.

Check if your webapplication is able to work from other urls (e.g. wordpress uses an url builder to build all application ressource identifiers, so it needs to be configured for the url it is accessible from.
Check if your local system firewall and security programs are allowing external http requests.
If you do have any external barriers like a router or firewall you need to go through be sure that they are configured properly.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How can I make my web server public?

Postby ara » 15. June 2021 17:30

Hi, thanks for answering.
When you say your own apps, do you mean the ones downloaded from bitami?
And if I have not downloaded it from there but from the CRM page itself?
ara
 
Posts: 3
Joined: 15. June 2021 15:34
XAMPP version: 7.3.28 / PHP 7.3.28
Operating System: Windows

Re: How can I make my web server public?

Postby Altrea » 15. June 2021 18:18

Doesn't matter from where the webapplication is downloaded.
If the webapplication is programmed to have configured a base url or something similar, you need to take care that this url is matching both internal as well as external requests.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How can I make my web server public?

Postby ara » 16. June 2021 01:56

Altrea wrote:If the webapplication is programmed to have configured a base url or something similar, you need to take care that this url is matching both internal as well as external requests.



So if I enter my public ip where is this URL configured, should they be able to access my CRM?
ara
 
Posts: 3
Joined: 15. June 2021 15:34
XAMPP version: 7.3.28 / PHP 7.3.28
Operating System: Windows

Re: How can I make my web server public?

Postby Altrea » 16. June 2021 05:59

You would need to resolve the url on all client PCs which want to access your Server.
So either you officially register a Domain, than the Domain url will be resolved by any of the public DNS Servers in the internet. Or you need to care yourself by adding it in all client DNS (like the router) or operating system (Windows hosts file).

But before you do all of that you should try If you can request the public IP from one clirnts browsers without url to get to your CRM. If this is not the case you have forgotten to forward your port to the server in your Router.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How can I make my web server public?

Postby Andy259 » 25. June 2021 09:27

First of all make sure your firewall is configured for incoming traffic on port 8080, next forward your ports to your internal ip, on windows go to search bar and type cmd, once thats opened type ipconfig a list will come up there should be an ip with (preffered) note this down this is where you need to forward your port to in your router, next you need your external ip google what is my ip, make a note of this, google free dyn dns i use dynu.com, don't sign up for an account yet I'm assuming if your hosting your own site you want to keep costs down, go to dot.tk, sign up and get a free domain name, when you have done this go to dynu.com you will then sign up you will have the option to use one of their domain names or add your own its up to you, i added my own, once you have done this they will get you set up go back to dot.tk, then you can either forward the domain name you chose or add the nameservers from dynu.com, wait a couple of days and your site should be live from outside your network.
Andy259
 
Posts: 3
Joined: 24. June 2021 01:34
XAMPP version: 3.3.0
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 138 guests