Server listening to localhost:8080 can Apache still listen to port 80?

I have a C++ server in linux using Mongoose listening on port 8080 for http requests. I'm using port 8080 because I have an Apache server already using port 80.

The reason I have my C++ server listening for http requests is so that I can receive the http GET sent by Facebook to get a user's Facebook info. For the Facebook server side Auth I'm redirecting to localhost:8080.

I am correctly getting the information sent from Facebook, but now Apache isn't serving up my html to the clients webpage (which works correctly if I only redirect to localhost).

Is it possible to make both of these work? Is the client still trying to get the index.html from port 80 or does it expect 8080 to now send this?

Answers


Is 80 equal 8080? Apparently no. So the both ports might be listened by different applications. Try to inspect income requests with Wireshark (packet analyzer).


Need Your Help

Manually enqueue reusable UITableViewCells?

iphone performance caching uitableview

I have some custom table view cells that takes a while to draw, so the first time you scroll it's not very smooth. After the first scroll, all the views are cached and the scrolling is very smooth....

Aligning video behind image

javascript jquery html css html5

I'm trying to align a video behind an image so that it looks like you are changing channels on a tv set. Right now the video is small, and I can't adjust the size of the video. Any ideas or better ...