I just corrected all typos and deleted "Deny from all" and also added
ErrorLog /data/www/html/caspdb/error_log but still not working as well as nothing is written in error_log file On Wednesday, 16 April 2014 17:04:58 UTC-7, LightDot wrote: > > First thing that jumps at me is the "Deny from all" directive in your PHP > vhost... The other things I notice are the typos: you have catdb subdomain, > catpdb document root and caspdb directory. At least one of those is a clear > typo. > > Apache logs are quite helpful with these stuff. > > Regards > > On Thursday, April 17, 2014 1:02:12 AM UTC+2, sonu kumar wrote: >> >> I am running one web2py application on fedora webserver. Now I would like >> to run one PHP application on this same server, but I am not able to >> configure its httpd.conf file. >> >> At the moment my web2py application setting in httpd.conf file is below >> in black and red is for my PHP application but not able to access PHP >> application from web but web2py application running fine: >> >> NameVirtualHost *:80 >> NameVirtualHost *:443 >> >> <VirtualHost *:80> >> ServerName catdb.sanfordburnham.org >> DocumentRoot /data/www/html/catpdb >> >> <Directory /data/www/html/caspdb> >> AllowOverride None >> Order Allow,Deny >> Deny from all >> DirectoryIndex index.php >> </Directory> >> >> </VirtualHost> >> >> >> <VirtualHost *:80> >> ServerName cleav.sanfordburnham.org >> WSGIDaemonProcess web2py user=apache group=apache processes=1 threads=1 >> WSGIProcessGroup web2py >> WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py >> WSGIPassAuthorization On >> >> <Directory /opt/web-apps/web2py> >> AllowOverride None >> Order Allow,Deny >> Deny from all >> <Files wsgihandler.py> >> Allow from all >> </Files> >> </Directory> >> >> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) >> /opt/web-apps/web2py/applications/$1/static/$2 >> >> <Directory /opt/web-apps/web2py/applications/*/static> >> Options -Indexes >> Order Allow,Deny >> Allow from all >> </Directory> >> >> <Location /admin> >> Deny from all >> </Location> >> >> <LocationMatch ^/([^/]+)/appadmin> >> Deny from all >> </LocationMatch> >> >> CustomLog /var/log/httpd/access_log common >> ErrorLog /var/log/httpd/error_log >> </VirtualHost> >> >> <VirtualHost *:443> >> ServerName cleav.sanfordburnham.org >> SSLEngine on >> SSLCertificateFile /etc/httpd/ssl/self_signed.cert >> SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key >> >> WSGIProcessGroup web2py >> WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py >> WSGIPassAuthorization On >> >> <Directory /opt/web-apps/web2py> >> AllowOverride None >> Order Allow,Deny >> Deny from all >> <Files wsgihandler.py> >> Allow from all >> </Files> >> </Directory> >> >> AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) >> /opt/web-apps/web2py/applications/$1/static/$2 >> >> <Directory /opt/web-apps/web2py/applications/*/static> >> Options -Indexes >> ExpiresActive On >> ExpiresDefault "access plus 1 hour" >> Order Allow,Deny >> Allow from all >> </Directory> >> >> CustomLog /var/log/httpd/access_log common >> ErrorLog /var/log/httpd/error_log >> </VirtualHost> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.