Apache :: Applying Root Directory Attributes To All Subdirectories
Feb 18, 2013
I am running Apache2 server (version 2.2.16) on Debian Linux.
My document root for directory listings is set and in that folder I have a few other files to configure the formatting and visual effects. These are:
images(folder)
sorttable.js
style.css
index.php
These files make the root directory look very nice. If I navigate in to a subdirectory, all of the formatting and visual effects are lost and the standard text layout is shown. Is there a way I can get ALL subdirectories in the root directory to take on the visual and layout effects from the root directory?
I know it works if I manually copy each of the files to each of the subdirectories which would be fine, but the subdirectories are created dynamically and new ones are added regularly.
View 1 Replies
ADVERTISEMENT
Jun 24, 2008
I am trying to isolate different users in a directory and subdirectories.
Case:-
Directory A --> Sub A
--> Sub B
--> Sub C
I want everybody to be able to access "Directory A" but limited access to "Sub A", "Sub B" and "Sub C". How can i achieve that?
Currently, all users that are able to access "Directory A" can go in "Sub A", "Sub B" and "Sub C".
View 2 Replies
View Related
Jan 2, 2014
I have home a server Apache. I want to put all my party songs in one partition and can listen from anywhere without having to take CDs. I have my site in C:Site and the songs I put it in D:Songs.
In php I see the D:Songs directory, I can read subdirectories, I see the .mp3 and .Wav files, I created the playlist, but the audio player doesn't start.
If I move the songs files in C:Site or C:SiteSongs goes perfectly, I can listen my music, but I do not want to be there.
Why I see in D:Songs, but does not want to go? In httpd.conf I have:
DocumentRoot "C:/Site/"
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
and
<Directory "C:/Site/">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
I try to put also:
<Directory "D:/Songs/">
Options Indexes FollowSymLinks
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
bud does not work. "What Can I Do"?
[URL] ....
View 7 Replies
View Related
Jun 2, 2014
In httpd.conf I have
DocumentRoot "C:/Programme/Apache_Group/Tomcat-8.0.5/webapps/ROOT/"
2.4.9 is complaining about this having to be a directory. It is definiteley. I can browse it with explorer.
When I change this to "C:/Program Files/..." it works.
Why is that? In the stock Win32 server I downloaded from the apache site I did not have to make this change.
View 4 Replies
View Related
Aug 2, 2014
I am trying to create a new domain and I am getting this error
Error: vhostmng failed: Access is denied. (Error code 5) at retrieves attributes for file or directory D:PleskVHOSTS
s1.caboodledns.com
achaelwillment.com
(Error code 1)
I have done permission repairs via the plesk tool on the server but I still get this error. What user needs what permissions to fix this?
View 2 Replies
View Related
Jun 15, 2014
I have some instructions written in the .htaccess of root directory for my website. So how to force those rules to apply to all sub directories even if those sub directories have .htaccess that overwrite the rules of the mother .htaccess on the root directory ? For example the root .htaccess deny access to all *.log files, so how to force that rule even if in some subdirectories there is some .htaccess files that allow access of *.log files.
View 1 Replies
View Related
Apr 24, 2008
My family is getting into the blogging business and they want to be hosted together to share costs. What features should I look for in hosting 4 or 5 small but growing blogs?
Info that may help you give a recomendation:I plan to have a separate url for each blog's root directory.
I plan to use wordpress.
I want each site to have it's own email addresses.
View 11 Replies
View Related
Jul 11, 2014
I need to place a file in the root of my server. How should I do?
I tried:
SSH connection
wget ......
but the file is not in the right place
Where should I place it?
View 2 Replies
View Related
Nov 11, 2008
I have a cpanel/centos box with dual drives. I mounted the 2nd drive and wondering how I can go about using it as ftp space, even http space. Basically, in a sense using it as if it were a second "primary" drive so to speak.
View 1 Replies
View Related
Jan 23, 2007
I've been searching for a way to add custom attributes into an LDAP schema. At first I didn't know if it was possible, but I guess it is. What I can't seem to find out now, is how to add them? Do I have to make a custom schema & upload it? How do I go about adding these fields? This all stems from me using other attributes for different functions, ie ( I'm using the employeeNumber field to determine if someone is allowed internet access. What I would like to do is make an attribute called inetAccess and use that instead.)
I'm using OpenLDAP on a Linux OS (SuSE). Anyone have any experience in adding custom attributes, or custom schemas? Or can anyone direct me to where I would find the answers?
View 0 Replies
View Related
Nov 18, 2008
I have a VPS with CentOS5 and CPanel...for some reason if I went to that URL it would show the website for the second account created in WHM...so I modified the httpd.conf and added the domain, but for some reason subdirectories won't work on it.
View 2 Replies
View Related
May 3, 2014
I created a MS SQL 2012 DB server node. It installed MS SQL and also IIS to the node. Therefore this server is now showing it will host both IIS sites and MS SQL sites. However, I do not want it to host IIS sites, just databases. But I cannot remove the host from the IIS attribute. How would I do this to ensure no IIS sites get created on this Database server? BTW, the MS SQL 2008 node only installs MS SQL 2008, not also IIS. Not sure why 2012 is different.
In the end, I should be able to determine which nodes I want to be called into service depending on the service template/resource. For example, if I want a reseller to use only certain servers, then I should be able to create resources with only those servers in them which I can then assign to resellers.
View 3 Replies
View Related
Jan 4, 2007
Useful unix-command trick to quickly remove i.e. Thumbs.db files, WS_FTP.LOG files or *.fla files, recursively through directories.
It could be a real pain on a huge directory tree ;-)
Removing all *.fla files from /home/user/ and subdirectories...
Code:
# find /home/user/ -name *.fla -ok rm {} ;
Removing all WS_FTP.LOG files from /home/user and subdirectories...
Code:
# find /home/user -name WS_FTP.LOG -ok rm {} ;
Removing all Thumbs.db files from /home/user and subdirectories...
Code:
find /home/user -name Thumbs.db -ok rm -f {} ;
View 14 Replies
View Related
Aug 7, 2014
If users copy files/folders on Plesk Panel 11/12 with attribute "read-only", I don't see this attribute on File Manager, every time do next "attrib -r <path to file/folder".
Maybe you can improve functionality of "File Manager" on Plesk Panel 12?
View 1 Replies
View Related
Dec 4, 2008
Forwarding a domain (incl. subdirectories/subdomains) to the same URL
I'm looking for a provider which can offer a service similar to mydomain.com, I should be able to add an unlimited number of domains to forward on external urls in a way which should point anything-you-digit.myname.com and myname.com/anything-you-digit to the same destination url
If the service might also allow to add title, keywords and description for each domain, this would be even better but not required.
MyDomain can offer all this but there's a fee for each added domain while we'd prefer paying a monthly fee for a single hosting where adding multiple domains.
View 2 Replies
View Related
Sep 1, 2014
My web server starts from /var/www/xxx/xxx/
I have installed phpmyadmin, and i tried placing the folder both in /var/www/xxx/xxx/ and /var/www/ and neither seem to work.
How I can get it to show up in the /var/www/xxx/xxx so i can just access from my.site.name/phpmyadmin
Even more preferred would be keeping it in the /var/www/ folder, but still being able to access my site at my.site.name/index.php and my phpadmin by my.site.name/phpmyadmin
View 1 Replies
View Related
Jul 15, 2009
Why apache parent process still owned by root user.
=========
root@server:~# ps aux | grep apache2
root 30161 0.0 0.8 35588 8368 ? Ss 17:41 0:00 /usr/sbin/apache2 -k start
www-data 30166 0.0 0.7 36080 7196 ? S 17:41 0:00 /usr/sbin/apache2 -k start ...
View 5 Replies
View Related
Sep 5, 2007
Basic question: does it matter where I set the document root for apache on a Linux system? I've googled this but haven't found a good answer.
This is for a VPS server running the Ubuntu (Debian) server os that I'm configuring. I'd prefer to simply create a new directory off the root and set that as the document root in the apache config file. Would this present any kind of security issue?
If that's no good, what's the best choice -- stick to the default?
View 3 Replies
View Related
Oct 26, 2013
I just made a fresh install of the following :
Apache 2.4 (x64)
PHP 5.5.5 Thread Safe (x64)
OS: Windows 8.1 (x64)
And I think everything is working. When openingen 127.0.0.1 I see the apache message that the server is running and when executing phpinfo() it displays the PHP info.
My problem is that I'm trying to change the document root.
I have change the following in the httpd.conf:
DocumentRoot "C:/Apache24/htdocs"
<Directory "C:/Apache24/htdocs">
The lines abowe have been change to:
DocumentRoot "D:/www"
<Directory "D:/www">
After this I did a reboot of the apache server using the CMD httpd -k restart. I even tried restarting using the apachemonitor and rebooted the whole server. But apache still loads the files from c:/Apache24/htdocs
I can't find any more entries with htdocs to change. What am I missing?
View 2 Replies
View Related
Feb 5, 2013
For now I have this
RewriteEngine On
RewriteCond %{http_host} 7eh.net|www.7eh.net
RewriteRule ^/?$ http://www.secretdesignart.com/ [L]
But some folders are redirected.
You can check here:
[URL] .....
View 2 Replies
View Related
Oct 9, 2014
creating a basic redirect. What I need is to redirect the root of my server 173.x.x.x to a file called test.php in the root of my folder.example: when I go to http://173.x.x.x I get redirected to http://173.x.x.x/test.php..
View 3 Replies
View Related
May 17, 2007
I am trying to get Apache to disable .htaccess overrides and php for a certain directory (and it's subdirectories).
I can disable PHP scripting using a .htaccess file containing:
Code:
Options -ExecCGI -Indexes
I now want to disable .htaccess overrides, which Apache's documentation says is only possible in a <Directory> directive. I have therefore attempted to add the following to the website's Virtual host in httpd.conf:
Code:
<Directory /home/ceejayce/www/dropbox/*>
AllowOverride None
</Directory>
However, the above posted .htaccess file (which is located in /home/ceejayce/www/dropbox/2007/.htaccess) still runs and disables ExecCGI and Indexes. So, it looks like the <Directory> directive is not being processed? I have tried it outside the virtual host, straight into the config file - but it works the same way.
Apache's error log says nothing, other than ExecCGI is off in this directory and Directory Index is forbidden (so basically it's reading the options from the .htaccess file and applying them).
I want to make a folder than can only serve static content (no php etc).
View 1 Replies
View Related
Jul 21, 2007
May be this is a stupid question, but I really don't know why I can't list the files in the root folder of a website(I didn't put any index.html or index.php in the folder).
I point my domain.com to /home/user/docs, the server can list domain.com/test/ files. But it can't list the files of domain.com/. It just shows the page at /var/www/htm, if I don't have any index file under /home/user/docs.
I have this in the httpd.conf file:
<Directory "/home/user/docs">
Options +Indexes
allow from all
</Directory>
View 2 Replies
View Related
Jul 10, 2014
When I enter my_domain.com the browser displays index.php located in httpdocs on my server. When I enter my_domain.com/main/ the browser displays another page, but there's no directory "main" in my httpdocs. Somehow it's redirected to another location (but in URL bar in the browser it's still my_comain.com/main/). I need to find that location.
As I searched through the web, such redirection can be made in .htaccess file, but I can't locate this one either. My server is Apache on CentOS6, and httpdocs directory is located in /var/www/vhosts/my_domain.com. I searched for .htaccess in several locations that I googled, I also tried executing "find / -type d -name '.htaccess'" on PuTTy, but it gives no results.
View 2 Replies
View Related
Apr 20, 2014
When I open my site in a browser and I point the URL to specifically // ipaddress / location A it's all good. (Apache Server)..My problem is, if you open the site in a browser with just the IP address alone it goes there for a second and then automaticlly goes to and opens the other site in location // ipaddress / location B.
However, what I need it to do, I think, is edit the apache conf file to make it open location A as the default. What do I need to do in the apache (httpd-conf) to fix that? For that matter is that the right file to edit?
View 1 Replies
View Related
Oct 15, 2014
I would like to write a rewrite rule that does the following:
RewriteEngine On
Redirect 301 URL...
So what I want is that the first url is rewritten to go to the second ..I have a whole bunch of links that I have to redirect, so I would like to place them all into one .htaccess file or into the default configuration file of apache. So what I do not want is to create SomeFolder1 and someOtherFolder2 and to place a .htaccess file into that place in order to make it work. In fact I want to ignore the folders of the old link and only use the pagename.
View 1 Replies
View Related
Dec 18, 2012
Earlier I made a setup using UNC path in my Apache configuration. I managed to make this work. Now on another installation using Apache 2.2.22 nothing works like before.
This is how my configuration looks like ....
View 4 Replies
View Related
May 24, 2008
With my old Apache 1 and PHP4 I was able to pull files from behind the public_html using a php file without any problems. Is there a reason why this does not work with Apache 2.2 and PHP5?
the piece of coding below is what grabs the image. Right now i'm just seeing a red X for each image.
PHP Code:
if ($private == 1) {
header("Content-type: image/jpeg");
$im = imagecreatefromjpeg('/home/site1/private/' . $type . '/' . $mid . '-' . $iid . '.jpg');
imagecolorallocate($im, 255, 255, 255);
imagejpeg($im);
imagedestroy($im);
}
View 1 Replies
View Related