Software :: Disable Options +FollowSymlinks In .htaccess Files On An Apache Web Server?
Sep 11, 2010How can I disable Options +FollowSymlinks in .htaccess files on an Apache web server?
View 3 RepliesHow can I disable Options +FollowSymlinks in .htaccess files on an Apache web server?
View 3 RepliesI want to give a 404 error when the index.html file is requested, i already know how to do this in php, but i cant seem to locate any information about how to do it in htaccess. I thought about just redirecting index.html to a page that dose not exist, but i would like to do it correctly from the start.
View 2 Replies View RelatedStay I have a url to view files, e.g.
[URL]
How do I setup a apache htaccess redirect so I can use a static url like:
[URL]
So if I disable apache 2 my ngnix server will serve the files in /var/www automatically.
View 1 Replies View RelatedI need to redirect through a .htaccess file in my root folder. The redirect needs to be done from http://www.department.univeristy.edu/reuir to a different server [url]. I am having trouble in determining the pattern that is required for it to take effect.
View 2 Replies View RelatedI am administoring a few websites and the latest website to be deployed has a few "unable to check htaccess file, ensure it is readable, referer: " errors in the apache-error log.
That is fine, becuase the directory doesnt contain a .htaccess file.
Is there a setting whereby I can turn off this error ?
I dont want to turn off checking for .htaccess files because some directorys have this file and use it.
I've got a dedicated server using whm/cpanel and there is a particular domain being hosted which contains a very elaborate .htaccess file which is full of mod_rewrite rules, among other things. I've been asked to try and get the contents of this .htaccess file into the httpd.conf (or some appropriate include file) to improve performance.
I've been reading this page and it's really confusing me: [url]
In the file usr/local/apache/conf/httpd.conf I see that there are two VirtualHost sections that appear to be relevant for my domain (which I'll call mydomain.com). The first listens on port 80 and the second is on 443. Seems to me that my apache directives in .htaccess would belong in this section. In the first section I see this:
Code:
In the second section I see this:
Code:
The problem with both of these is that the directory /usr/local/apache/conf/userdata does not exist, much less the full path to either of those files.
I have a folder /home/dryaf/Desktop/site and I want to copy its content to the folder ~/www/sitename in the remote server. How to do that ? also does the scp copy also hidden files likes .htaccess?
View 1 Replies View RelatedI want to disable SSL v2 in apache on my CentOS 5.2 box (httpd 2.2.3), for that, I've added following lines in my /etc/httpd/conf.d/ssl.conf:
Code:
SSLProtocol -All +SSLv3 +TLSv1
SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
and restarted httpd.
But it still not disabled, I'm connecting to SSL v2 and getting error for SSL v3:
Code:
# openssl s_client -connect localhost:443 -ssl2
CONNECTED(00000003)
# openssl s_client -connect localhost:443 -ssl3
CONNECTED(00000003)
8021:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:s3_pkt.c:284:
how do i disable apache2 errorlog?
View 3 Replies View RelatedI'm running Apache with mod ssl, with a php app using ssl. https://www.example1.com
I've made a virtual host to host a simple static site which I dont want SSL for.
When I try and get to the site it redirects me to [url] which gives a certifcate error and shows the site from example 1.
Config below:
I have recently merged two Joomla 1.0 sites I ran into one. I imported the articles I wanted to keep to the new site, and I have the old site's domain pointing as an alias at the new site. The new site is www.theouthousers.com . The old site was www.bludblood.com .
I also have the core SEF URLs on, using the htaccess.txt file that came with Joomla.
I have one writer for the old site who linked to his articles in various places, so I am trying to set up redirects for him so that he doesn't have to change all of his links.
For instance, I need something like:
http://www.bludblood.com/joomla/inde...d=25&Itemid=51
To redirect to the equivalent location on the new site:
[url]
And I also need specific links like:
[url]
To redirect to their new counterparts:
[url]
Keeping in mind that www.bludblood.com is now an alias of www.theouthousers.com, is there any way to do this? I have been trying with rewrite rules and redirects, and cannot seem to achieve the desired effect.
Tried various versions of:
Code:
Redirect [url] [url]
With the http, without, as regexps, as 301s, as permanents, etc, and it just will not work. Also tried as RewriteRule.
I try to config my apache server to list all my files: c/c++, php, java files, like the txt file on my server,
e.g /var/www/mydomain/pub
i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name,
if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file,
Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
config my apache server to list all my files: c/c++, php, java files, like the txt file on my server, e.g /var/www/mydomain/pub i want to dump all my c/c++, php, java file under the pub directory and I can access it from my domain name, if I dump txt file, I have no problem to view it, but when I dump c/c++ or php files under pub directory, then I can't view it like regular txt file, Q: is there anyway I can configure my apache server to view all the c/C++, php, java file as like txt file?
View 1 Replies View Relatedi've had my dedicated server for about 16 months now and my log files are huge and I host a few small sites but one of them is quite large and can get a log file (access.log and error.log) of 1-2gb a month so over a year can take up almost 30gb just for that site so I clean them out regularly but I'm wanting a more automated way to do thisi've been thinking of using the find command using something like this but it isn't workingCode:find /var/www -name "*.log" -type f -size +10M -exec echo > {} /;
View 13 Replies View Relatedi installed apache 2.2.15 in my system its working properly.... but i deployed some php files in /usr/local/apache2/htdocs ... i was not able to run that php files ..... if i run that php file in browser it shows content of that file... for an example i created one test.php file(it contains <?php echo "hello world" ?>) and put it in /usr/local/apache2/htdocs... if i run in browser using this [URL] its shows in browse like this <?php echo "hello world" ?>......
View 1 Replies View RelatedPossibly off-topic, as this is in a VServer, running a non-standard kernel, but both the host and the VServer are running CentOS, so.....I've been happily running a small web site on a CentOS 5.3 host, using Linux-VServer. (So it actually runs on a 2.6.22 special VServer kernel.)This *might* be connected with updating to 5.4, but I'm not sure how. VServer itself was not touched, and httpd runs inside it (that is, using the VServer's httpd, not the CentOS one. Vserver however, is running Centos.
Suddenly, anything I load into the VServer DocumentRoot is not visible. A ls -l of files that show and files that don't show the exact same thing. That is, for example-rw-r--r-- 1 root wheel 106314 Oct 5 22:38 mutt.html-rw-r--r-- 1 root wheel 390 Oct 26 22:09 new.htmlYet, mutt is viewable and new.html just gives me a 404.
So, I then edited the mutt.html.I added a line like line for testing or something similar.That too, does not show up. That is, the mutt page shows, but the change I made in it doesn't show. I've tried restarting the vserver, but that did nothing.(And yes, I did hit refresh on the browser and also used another browser, to be sure.)I raised apache log level to debug, but neither access nor error shows me anything.I'm not even sure what terms to use in googling, trying things like newer files apache not visible and similar have brought me no luck.
I was looking for a way to disable the Suspend and Hibernate options from the logout menu as my laptop hangs on both and requires unplugging/battery removal to restart.
I found a few pages with instructions for older Ubuntu versions but I didn't come across anything that applied directly to 10.04 Lucid Lynx so I thought I'd post what I found worked for me on 10.04.
Open a Terminal from the Applications>Accessories>Terminal. Because the file you will be editing requires root privileges to edit, you will need to use the sudo command:
Code:
sudo gedit /usr/share/polkit-1/actions/org.freedesktop.upower.policy
Enter your password. This will then open the settings file in the text editor with the needed permissions (opening the file directly with the editor you will get an error message if you try to save the file). There are two sections in this file, the first for suspend and the second for hibernate. Near the end of each section will be a line with:
Code:
<allow_active>yes</allow_active>
Change this from Yes to No to disable. Save the changes and reboot.
Code:
<allow_active>no</allow_active>
Now the power menu will not display these options. To reverse changes just repeat the above and change from no back to yes.
We are having an odd apache issue. Certain files are not being served out.The files actually live in a remote DFS volume served off a windows system. They're mounted under /data/vizwx. There's a subfolder here called wx_intranet which has all the data.The Document root for this virtual host is /data/www/htdocs. There is a data/vizwxsubdirectory with a symlink named wx_intranet which points to /data/vizwx/wx_intranet .SELinux is completely disabled (not even permissive).
When a user requests a file from http://<host>/data/vizwx/wx_intranet/VizWx_14c.jpg no error is given to the browser. Firefox just shows the URL in question (I can't even view source). The <vhost>_access.log file shows: wx_access.log:172.16.1.16 - - [19/Feb/2009:15:30:16 +0000] "GET /data/vizwx/wx_intranet/VizWx_14c.jpg HTTP/1.1" 206 167791And there's nothing in the <vhost>_error.log, even after cranking the LogLevel up to info.
The permissions on the files in the share are slightly weird for reasons I don't fully understand, but they should work... the files are an effective 'chmod 3777 <file>' for all files in the mounted directory... that's with Sticky and SetGID bit set.What am I missing here? Oh, I also modified the Vhost's options from "Options all' to 'Options all -SymLinksIfOwnerMatch" to see if that was the problem... no dice.)CentOS v5.2, apache 2.2.3
After reading this pdf on top 5 things to log for security, ive decided to attempt this for my webserver. how i might setup some logging systems to do these tasks. Basic things i need to be able to do: Record things like password attempts on htaccess files, from what IP address, and how many attempts there were. Any useful links anyone can think of to get me started? Im a student programmer at university so any programming i should be able to cope fine.
View 2 Replies View RelatedI have a site hosted with a cheap hosting company and limited control of the site. I need to allow some other users all over the world to have write access to files or complete directories and I have no idea how to do that. Initially I thought I could use "chown" somehow but it looks like it's a no-go with ftp and others. By default, there is a .htaccess file and a .htpasswd file in the root directory of the site and the hosting company suggested to use .htaccess file with something like below:
[Code]....
and put it in a .htaccess file in the directory of user1 but the server does not like something since I inserted that file. Is it an error in the script or is there more to it than that? Can someone point me to a suitable tutorial or explain what to do?
How can I disable structure alignment feature of gcc using command-line options ?I recently migrated to 64-bit OS, and doubt that I might be experiencing a structure alignment problem due to the new 64-bit architecture.I checked the sizes of the same C-style struct in both x86 and x86_64, and found out that they appear to be different by 20 bytes.I am not sure if this is due to structure alignment or the differences in data type lengths between two platforms.Hence, I will first disable the structure alignment feature, and then check the struct sizes again.
View 3 Replies View RelatedI recently started using SVN with Apache for my web development, although I find it really annoying that I have to issue two SVN commands (one local, one remote) to update my web site. I have been looking into SVN post-commit hooks to solve this problem. The only problem is that apache does not have permission to modify files in my user directory... So here is how everything is setup. I am running Slackware 13 full install. There have been no installations overriding any of the default installs.
[Code]....
I'd like to permit to start download file when I click over some links. How can I to start download files through http protocol with apache 2?
View 5 Replies View RelatedI want to disable Reboot and Shutdown options from the drop down menu in Ubuntu 9.10. I tried this:[URL] I also tried to modify the gdm.conf file, but the changes I made, made no difference.
View 2 Replies View RelatedI am using Ubuntu 10.04. I want to disable the cut, copy, paste options in the Edit menu when my system is connected by rdesktop. I want to make a write/copy protected session in the rdesktop. I have disabled the keybord shortcuts like Ctrl+X ,Ctrl+V, Ctrl+C by disabling their Keysyms in the rdesktop code. Now I need to disable the options in the edit menu.
View 3 Replies View Relatedmy task is to store the data to a file at server sent via HTTP POST, i written suitable cgi script in C, but the PROBLEM is that i can't complete the task, I guess i require server permission to do so, how to configure server or how to get access right from server to store data to a file.
View 3 Replies View RelatedI'm currently upgrading my clients' CentOS 5 installation to use httpd-2.2.14 as we need it for the server to past some of the Hardware checks used in the PCI [Payment Card Industry] security test. I was basically wondering if anyone had the standard CentOS 'configure options' for building httpd/Apache so I could copy them to ensure it is a straight replacement for my existing 2.2.3?
[Code]...
I have created a sub directory on my box on a website for my company. It is a page that has links to my tools I want to use when I do service calls. Links that connect to my servers webmin etc. Of course I don't want them found by webcrawling bots. I have created a .htpasswd file using htpasswd -c /location/to/file/.htpasswd.
This file is located outside the web. Just under the public_html folder. Then I went to the sub directory I want to protect and added a text file named .htaccess. It contains:
/home/sites/www.domain.net/tech/
AuthType Basic
AuthName "Some long name"
AuthUserFile /home/sites/www.domain.net/.htpasswd
Require valid-user
ErrorDocument errornumber /home/sites/errorpages/403.html
I also opened the httpd.conf and changed AllowedOverride to All
The error document doesn't work either.
I then restarted the httpd service. I try to access the site and it lets me right in without asking for a password. It is apache 2xxx on Centos 4.5. Webmin under Apache confifirms all this.
I want to use rewite module to change my site url from site/index.php to site/cat/ for example I have created .htaccess file in the directory where the file is and add to it:
Code:
RewriteEngine on
Rwerite ^cat$ /site/index.php
Here site is not my site, it just in example. I have rewrite.load in the loading list of modules and I can see it loads in phpinfo(). AllowOverride is set to All for the current site, but no redirect is made on site/cat