Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directe mapserver CGI aanroep dichtzetten #11

Open
matthijsln opened this issue Jul 2, 2013 · 2 comments
Open

Directe mapserver CGI aanroep dichtzetten #11

matthijsln opened this issue Jul 2, 2013 · 2 comments

Comments

@matthijsln
Copy link
Member

In Apache iets configureren dat vanaf Internet deze requests niet kunnen worden gedaan:

http://www.openbasiskaart.nl/cgi-bin/mapserv.fcgi?map=...

Natuurlijk kan je met map=/var/opt/openbasiskaart/mapserver/basemaps/osm-default.map wel een mooie scherpe kaart krijgen op alle zoomniveau's :) maar dat kost waarschijnlijk teveel performance om dat voor iedereen toe te staan. De WMS via MapCache gebruikt de tiles om WMS requests te renderen.

Natuurlijk wel voor 127.0.0.1 voor MapCache en evt andere IP's voor testen van stijlen (alternatief kan dat ook via SSH tunnel dus alleen 127.0.0.1 toestaan).

@milovanderlinden
Copy link
Contributor

Kun je de huidige apache configuratie (inhoud van b.v. 000-default) opgooien?

Ik wil namelijk even weten welke cgi variant je gebruikt voor mapserver, daarna is het relatief eenvoudig om via een Deny rule toegang alleen toe te staan vanaf localhost:

<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from 127.0.0.1 localhost
</Directory>

@milovanderlinden
Copy link
Contributor

Eventueel kun je ook nog testen op de module door in bovenstaand voorbeeld:

<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from 127.0.0.1 localhost
</Directory>

te wrappen in:

<IfModule mod_fcgid.c>
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from 127.0.0.1 localhost
    </Directory>
</IfModule>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants