M
M
Maxim Grechushnikov2016-01-17 18:53:00
Nginx
Maxim Grechushnikov, 2016-01-17 18:53:00

Setting up Apache under NAT?

There is a guest OC Ubuntu under VirtualBox. I did port forwarding 8888 > 80, 80 > 80 for some reason did not want to transfer.
Then did sudo iptables -t nat -A OUTPUT -d 127.0.0.1 -p tcp --dport 80 -j REDIRECT --to 8888
everything works. Apache is on the guest room. shows sites. but there were problems with subdomains. different domains work (phpci.loc, auto.loc, etc.)
but subdomains and serveralias *.auto.loc fail
What am I missing and where can I check?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question