Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3086 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

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

Auteur

Where is apache configuration file?

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

Auteur

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?