Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

connectiong public domain with local xampp server  RSS feed

 
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, this might not be the right place to post this question, but since there isn't a specific forum for my prob and coderanch is become my place to go when I have a prob, I still hope there's someone reading this who can help me to come to a solution.
I'm setting up my own server, using xampp, but somehow I don't succeed in binding my ip-address with my domain.
This is what I've done so far. I changed the nameserver of my domainregistrar to my own, they said changing my A-records isn't needed if I'm using my own server.
Then I changed my local host file and added this:


I created a virtualhost in the httpd-vhost of my xampp instalation:

And did the same in my httpd config file of my xampp installation:


And finally I forwarded the needed ports in my routers config.
When surfing to the ip-address (my ip-address) the site works, so I know the portforwarding has bin done correctly, but the domain isn't connected yet, anyone an idea what I'm doing wrong?
I should also mention that after changing the httpd config or the v-host file the server won't start anymore
 
Saloon Keeper
Posts: 2406
296
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Daniel Demesmaecker wrote:I'm setting up my own server, using xampp, but somehow I don't succeed in binding my ip-address with my domain.
This is what I've done so far. I changed the nameserver of my domainregistrar to my own, they said changing my A-records isn't needed if I'm using my own server.


Binding domain name to IP address is done using DNS, with an A Record (address record).

You mention that you are hosting your own DNS server for your domain, but it appears that there is not a publicly-accessible DNS server at the configured IP address for ns1 and ns2.  Have you actually done this?  Unless you have a good reason to host the DNS server yourself, it is best to use the registrar's server and provision your A Record there.

Also, when you are first setting-up DNS, I would recommend setting the TTL values to something small, like 600 seconds (10 minutes), so that if you need to make a change you don't have to wait a long time for cached records to expire.  You are currently using a value of 172800 seconds (48 hours).
 
Daniel Demesmaecker
Master Rancher
Posts: 1161
18
Firefox Browser Hibernate IntelliJ IDE Java MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I decided to go an otherway cause I couldn't get it working(talking about the nameservers)
To use the DNS server of my registrar I need a static ip, so I requested one at my internetprovider, that's also way the link posted dosn't work anymore. I might put the idea of hosting my own site to bed all together, the static ipaddress costs 33€ a month, I'm cheaper to take hosting with my registrar. The main idea to set up my own server was cause I thought it would be easier to deploy my webapps, cause hosting that provides a webcontainer for java is f***ing expensive  
 
Ron McLeod
Saloon Keeper
Posts: 2406
296
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can host on AWS for free for the first year.  I'm sure others like Google, Azure, Oracle have similar offerings.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!