I would like to know if I can hook in a custom authorization support in apache2 webserver. What I want to do is, based on the user logged in, I want to disable few HTML pages being served to UI. The logic to check permissions to static resources (html, css, js etc) for a given user is little complex so I cant use the already available au...
Basically,
I get this error in my scripts:
Fatal error: Call to undefined function mysql_connect() in /var/www/login/includes/db.php on line 10
I have uncommented extension:mysql.so
I dont know why its not working, restarted everything aswell.
I am running on ubuntu 32 bit. Apache/MYSQL is installed with full permissions.
Here is m...
I have recently installed FC13 and am attempting to write a mechanism in my PHP code that caches gathered data into a specific directory (for our purposes here, let's call it /var/www/html/_php_resources/cache).
I copy my files over to the /var/www/html directory and then run chown -R apache:apache /var/www/html/* and chmod a+w /var/www...
I want to configure a mod_rewrite rule without using .htaccess files. When I put rules in .htaccess files they work fine, but I would prefer to leave all of the configuration in my /etc/apache2/sites-available/[site name] config file.
When I place the same RewriteRules within the VirtualHost or Directory directives, nothing works. What...
Hi! I'm playing with .htaccess and I was wondering if with just an .htaccess inside the root directory is possible to block all the request from a browser directed on existing files or directories.
Let's try this example:
RewriteEngine On
RewriteBase /~my_user/my_base/
RewriteRule ^list/$ list.php [L]
RewriteRule ^element_of_list/([a...
How to process with apache2 all requests by one script? Without mods if it is possible.
...
hi,
i have an IIS 6.x running on my windows 2003 sbs (Computer A), that is reachable from the internet von port 80 and the ssl port.
I have a second machine (Computer B) running in my local network, where i have running an apache webserver with serveral application i want to make accessable from internet.
i added iirf (Ionics Isapi ...
I've create a web app in Python3 all runs beautiful till that day what i have to upload a file... theres no way to find the path or the file in the environ i am using wsgi and i am thinking to migrate to another thing, what are your recommendation?
...
Hi all,
I am in the process of setting up a Git server (1.7.2.3) on a WS 2008 machine using Apache and git-http-backend.exe. I have been following a good tut here. I have the GUI working, I can annoymously clone and if I put the following in the config of a repo I can annoymously push:
[http]
receivepack = true
I have added the fo...
Ive built a small application which interacts with mysql at the backend.When I run on the mongrel server its wrking fine.
I want to run this application on apache server.
The application is a rails application
OS is opensolaris
I tried to modify the httpd.conf in apache and added the follwing lines to it.
LoadModule passenger_module /va...
I want to create a blog for an e-commerce website, but due to data security reasons I don't want to host the blog on the same machine as the website is hosted on. Is there a way to
host it on a separate machine using the sub-domain of blog.domain.com but have it be accessible via the url www.domain.com/blog.
My reasoning is that the c...
At work we have several Solaris servers.
Each server runs apache which we compiled a few years ago. It's been fine so far.
Now we want to build one apache, using the latest version, and have it include LDAP authentication modules (for AD integration), NTML authentication and mod_perl.
I can't find a guide for building apache like this ...
working .htaccess config:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_URI} ^thumbs/(.*)$
RewriteRule ^(.+)$ /index.php [L,QSA]
All 404 queries to /thumbs/ folder not must be catched by /index.php script. Why top .htaccess config work...
Hi,
I have just setup apache and passenger on a new VPS. It is the first time i've deployed a rails app. I've got it all working, it's just that when i refer to one of the routes defined in routes.rb using "www.hostname.com.au/controller/action" it just boots me to the index page of my rails app.
If i use "ip.ip.ip.ip/controller/acti...
Hi,
now my apache configuration looks like this:
<Directory /usr/share/myweb/>
AuthType Basic
AuthName "myweb"
AuthUserFile /etc/apache2/.passwords
Require user mw
</Directory>
It allows everyone to web, but require password.
I would like to let some users (from local IP) to be allowed to see the website without a need of aut...
Hi guys, ive recently installed apache2 on my Ubuntu machine and have a few questions about security and user permissions. I know how to listen on other ports, hide indexes with -Indexes and how to create/disable new Virtual Hosts on the same machine, but there is a lot of user options already preset in the standard install config I am u...
Hey guys,
I don't know if this is the right area, but here goes:
I have a RewriteRule
RewriteRule ^(eScience/)?(\w+)/RENDER/(\d+)/(\d+)/P(\d+)\.html$ /RENDER/escience/kids/1016/2063/test.html [L,NC]
that works fine because I've hardcoded the IDs in. Now when I do something like
RewriteRule ^(eScience/)?(\w+)/RENDER/(\d+)/(\d+)/P(\d...
Hi,
I'm running some virtual machines using VMware workstation on my PC (using win 7), also I'm using a basic WAMP installation. I'm trying to connect to my Win7 Apache server from any of the VMs. I tried changing the following line on my httpd.conf file:
<Directory "c:/wamp/www/">
Options Indexes FollowSymLinks
AllowOverride a...
I have a Windows server 2008 with apache2. The server has 2 discs and I run an apache instance on both. The first runs as a service the second in the commandline. They both use an exact copy of an identical webroot in their own htdocs folder. Also they both use the same PHP install that is located on the first disc (Program Files (x86))....
I have a WSGI app configured to run from the root of my site. This means that any url under this domain will execute the app. I am trying run a separate python script from within the main WSGI app. I am having a difficult time understanding how to configure my app to execute another local script. The second script needs to receive a POST...