Advertisement
pjmakey2

djang_apache_croossite

Dec 7th, 2012
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | None | 0 0
  1. #permite acceso de otro dominio en apache
  2. #esto es en httpd.conf
  3. <Directory />
  4.     Options FollowSymLinks
  5.     AllowOverride All
  6.     Header set Access-Control-Allow-Origin http://www.aconcagua.com.py
  7. </Directory>
  8. #luego levantar un puerto en apache
  9. #esto es mejor de tenerlo en un archivo de configuracion aparte y luego linkiarlo a httpd.conf
  10. Listen 8081                                                                                                                                                              
  11. <VirtualHost *:8081>                                                                                                                                                      
  12.     ServerName netipa.aconcagua.com.py:8081                                                                                                                              
  13.     ServerAdmin "Netipa Services"                                                                                                                                        
  14.                                                                                                                                                                          
  15.     WSGIDaemonProcess netipad processes=2 maximum-requests=500 threads=10                                                                                                
  16.     WSGIProcessGroup netipad
  17.                                                                                                                                              
  18.     WSGIScriptAlias / /var/www/html/apps/apps/wsgi.py
  19.     <Directory /var/www/html/apps/apps/>
  20.         Order deny,allow
  21.         Allow from all
  22.     </Directory>
  23.  
  24. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement