i already install apache it works, like when i type localhost to my browser. but the problem is when i ask someone to type my WAN ip outside my network, the page goes to my DSL router setting and ask me to login and password, How to redirect my wan ip to my lan ip so if anyone type my wan ip to their browser their go to my apache webserver im not planning to set some sort of DNS because this is only a testing purposes Thanks in advance
Install antivirus and good firewall app on the server first (if windows OS). Then from your DSL router config pages, either port forward http port(80) to the IP of local server OR add the IP of local server to DMZ. Save and restart router.
There's no point in having two firewalls. You want your server open to computers within your LAN network to make it easier to work on without having to be physically using the server. I have TightVNC for remote desktoping into my server. Mapping ONLY port 80 from your router to your server is sufficient. You'll have to consult your manual. Do not use DMZ. The only thing I see people consistantly trying to hack is the FTP server. And they just use moronic brute force attacks. My list of banned IPs grows on a daily basis automatically.