Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3068 Tampilan

I want to host a web based OpenERP application in a VPS Ubuntu 12.04 OS application. Can I restrict the application access to only assigned machines? In other words, I have 2 offices, and I need to restrict my employees from accessing this application only from office but not from their home or outside due to prevent losage of my customer data.

I think host-deny and host-allow might be able to help me. But I think we need static ip for the same. I am not sure above solution. Basically I was looking for a solution without using static ip.

Please help

Avatar
Buang
Jawaban Terbai

Use apache mod-wsgi to process request for 8069 to 80.

In Apache config you can restrict allow deny hosts.

But without static ip its impossible. May be you can read machine's MAC and validate based on it, but its not a reliable solution.

Avatar
Buang
Penulis

Hi Senthil, Did you mean this path for adding the host ip : /etc/hosts.allow , /etc/hosts.deny?

Yes you can allow or deny hosts using that and also you can restrict in ur apache configuration file

Penulis

Where is apache configuration file?

/etc/apache2/sites-available/default see here http://pastebin.com/LTYvWrQS

Penulis

I got all things, but still i have a confusion that How i add values in apache config file? What are the values i want to add?