简体   繁体   中英

Using SetEnv in Apache : where and how can I do that?

I want to run locally an App I am developing. There are instructions about how to config that here : http://devcenter.heroku.com/articles/facebook#working_locally in 2). I am using PHP, so I will use Apache. I had already runned a PHP project thanks to WampServer, but I do not know and do not understand how it works really.

Now I want to use SetEnv to set the env vars for my local app's VirtualHost, as described in the link above (for FB variables). But I do not know what I have to write :

<VirtualHost *:80>
DocumentRoot /Users/adam/Sites/mycoolapp-dev
ServerName mycoolapp-dev.localhost
SetEnv FACEBOOK_APP_ID 964173273189
SetEnv FACEBOOK_SECRET dcd5d23d003d53cb2b68e01
</VirtualHost>

some file ?

Or use the setEnv instruction in cmd.exe, somewhere ?

I have not found further explanations, and so am completely lost.

Thanks a lot for helping

Assuming that your app file are located inside facebook-test-app folder, you can make the following changes and then your app will work on the local development environment.

    DocumentRoot C:/server/www/test/facebook-test-app
    ServerName facebook-test-app.localhost

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM