Programming :: Apache2 VirtualHost Non-recurring Directory?
Sep 16, 2010
I didn't know exactly where to put this, but here it goes:For the record, I have Apache2 on Ubuntu.OK so I have a "svn" subdomain for SVN repositories. The repositories are actual separate repositories, not a big one for all. So I'm using SVNPath not SVNParentPath (please don't suggest this as a possible fix).
The problem is I want to be able to list the repositories (or even put a blank page for that matter) at svn.mydomain.com. All repositories have a svn.mydomain.com/myrepository path with a VirtualHost for each. So when I create another VirtualHost just for the / path, it overrides all the SVN VirtualHosts, as it covers / and all sub-directories.
I would like a way to set that VirtualHost to affect just the root directory, without the sub-directories. Or to make the SVN VirtualHosts override it. Either way, is this possible? What approach should I take? Thanks!
View 1 Replies
ADVERTISEMENT
Aug 10, 2010
I applogies if this doesn't fit or if this is right in from of my face but, I'm a bit confused.I'm trying to configure a few VirtualHost in apache2. I currently a default virtualhost and 2 other sites. No matter which domain I visit I still get the default page.. My Confusion is, I've been reading and some places seem to say that my virtual hosts should be in /etc/apache2/sites-enabled/*Config File* and other seem to say it should be in /etc/apache2/httpd.conf what the awsner... I've tried both ways with no success .... If I put NameVirtualHost in httpd.conf I get an error saying their are no virtual hosts.
View 2 Replies
View Related
Jul 10, 2011
I'm sure it's a minor mistake; these are the steps I've taken currentdomain: domain i already have, and works. newdomain: domain i newly bought.
[Code]....
This is to make sure the files are actually there, this subdomain works... simply pointing to the same folder
[Code]...
- all ipadresses in the hosting service of the domain thing is pointing to the vps.
- Within the vps that servername is directed to the directory /var/www/the_directory
- That directory holds the actual website files. This is proven with the subdomain method.
View 3 Replies
View Related
Aug 24, 2009
I am trying to access log file which located in /etc/log/apache2. I could get into the directory using `su`. I was able to run ls command under the directory and everything was file. I could run a command,
ls -d /var/log/apache2/*
However after I switched to my account, I got an error. sudo ls -d /var/log/apache2/* ls: cannot access /var/log/apache2/*: No such file or directory
I want to use this command in a bash script to get a list of log files. Should I write the script as root and run it as root?
View 3 Replies
View Related
Aug 13, 2010
it seemed like the most accurate place. Also apologies for any inaccurate terminology, I'm a bit new at this. Running Apache2 on top of Debian 5.0
Anyway, I have irssi set to output logs to a folder accessible by my web server. User permissions are all set up, so it writes to the folder just fine, but when I access the server index in a web browser (i.e., page that says "index of /[directory] at the top) I cannot see the the directory or the logs that irssi is making. I can ssh in and see the folders and files in the terminal, so they are being created. How can I set it so these are viewable through the web server? I tried restarting the server, no effect.
View 1 Replies
View Related
Mar 8, 2011
I'm running the turnkey linux version of joomla and I need to use PHP's mail functionality to send a notification email from a page (separate from joomla content) . PHP's native stuff is rather plain and I find myself needing the functionality of PEAR. So I've installed PEAR via aptitude, but it has installed to /usr/share/php.
how do I include these files from php scripts? Firstly, the files are owned by root, the www-data user doesn't have access. It also appears that the permissions on the files may need to be modified. Some php files don't have the execute flag (shouldn't they)? I recognize the point of having a centralized location for updates and sharing, so I don't want to just copy the files to my web directory (/var/www).
View 2 Replies
View Related
Feb 9, 2010
i have a web site and i need to forward all requests to the same page. Basically i would like to show a maintenance page while we are working with our database behind the application and in the meantime i would like to redirect all url in the root directory as following :
http:[url].....
http:[url]....
i tried to perform the action using mod_rewrite in this manner :
Code:
RewriteEngine On
RewriteRule . http://www.mysite.com [L][code].....
The webpage at http:[url]....has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
View 2 Replies
View Related
May 11, 2011
I have been searching the web and Ubuntu forums all day looking for an answer to what I initially thought would be a simple thing to do. I have set up a lamp server and started creating my network site, however was not long before I ran into an issue with fire fox not allowing me to access locally linked files that are shared on the network which works fine in IE. after several hours of trying to find a work around, I have been unsuccessful in creating a link that would work in both IE and FF.
so I got this bright idea see, to just make the website include the network shared content, unsharing them of course and simply adding them to my Apache server, well the more I read the more confusing it all became. do I use simlinks or do I create a server for each location/hard drive?
I really need a how to for big dummies on adding additional directories to Apache similar to adding virtual directors to IIS for windows.
View 3 Replies
View Related
May 21, 2010
Running Ubuntu 10.04
Installed apache2 and php5 and it works in /var/www
but once I point it to a home directory it won't serve php. Normally I have used phpcgi but I am currently trying to use regular php.
Here is my default file.
Code:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/greensmoothiegirl/public_html
<Directory />
[Code]....
View 4 Replies
View Related
Aug 31, 2009
I have been working on this for a few hours now and still haven't been able to track down whats going on. I just switched servers and put a fresh debian install on with apache2 + custom suexec + php5(fcgi). now when i upload a file to the site it wont upload, so i tracked down the issue. its the /tmp directory that root tmp. its at 100% so i restart the /etc/init.d/apache2 process and the /tmp directory is automagically cleared to 20% used and i can upload again. so i figure ok its got to be a setting. i looked in all the conf files conf.d the php5 conf files and no where do i have a /tmp directory set. so i think OK I can build a cron to clear the tmp directory every 10 mins till i find the issue, but alas, when i go into the tmp directory There are NO files to delete!!! wtf. holy crap. and all that goodness, this is crazy, how can you have a tmp directory that is not being written to, from all i can see, so i think ok it might be a hard link, i checked, in all root and sub root directories no hard links to tmp, no soft links to temp either. and if i sit in my /tmp directory and do a df -h after some uploads its going from 20% so 23% and up, but i do ls -alh and nothing, then ls -al and watch bytes, nothing , so this is very strange. has anyone encountered something like this? is it possible that this is a hard link thats hidden somewhere or some other extreme function i have never heard of?
View 8 Replies
View Related
May 10, 2010
With the command "tail -300 /var/log/apache2/access.log | less" i can look in the log for the 300 latest visitors. and i wanted to ask if it's possiblle to get that command to run from a php file and if yes how ?
View 4 Replies
View Related
Sep 20, 2010
I am running Ubuntu 10.04 on one 80GiB disk partitioned as two equal. The second one is mounted as my home folder. The reasons for the partitioning are historic and I don't think they're relevant here.
My problem is that Ubuntu frequently reports 'Low Disk Space'. The initial solution was to turn off backups and that seemed to ease the problem. Now it has started happening again, but backups are still turned off. I can't see anything unusual in the tmp directory - or anywhere come to that - but I don't really know where to look.
I have searched for known leaky problems but haven't found anything that seems to fit. I don't store images, videos or music.
View 2 Replies
View Related
Apr 23, 2011
**Forenote** i HAVE posted the other threads with the same intro of "hosting cp - " for the subject. I am attempting to create a web based hosting control panel and i figured that it would be easier & less confusing to post each different issue in a different thread so that answers to several differant problems weren't getting mixed up together. Ok, so as i said i'm building a hosting control panel and i need to figure out how to make my software control the functions of apache2. like setting up virtual hosts, sub domains, domains, etc.
if anyone can direct me to some good articles on interfacing with apache, or some open source projects that i could try to reverse engineer, that would be great. ive tried searching google, but i couldnt really find anything that really explained what i am trying to do. probably because most people usually dont try to use php to control apache as a weekend project, or a task to pass the time.
View 3 Replies
View Related
Dec 10, 2010
I run a few dozen dedicated web servers all running CentOS 5.5. A long time ago when one server was apparently compromised, I was urgently advised to sign in to the server and run "yum update" at least once a week to ensure that everything which I had installed using "yum", would get updated with any recently available updates, including security fixes, and that one reason I might have been hacked before was because I hadn't been doing that.
So, I'm still not sure if that would have prevented the original break-in, or how much this has reduced my chances of being hacked, but I've been faithfully signing in to each server every week for the past few months and running "yum udpate". Most times, this results in a lot of patches being downloaded and applied, so it's clear the machines are not doing it automatically. I figure it's about time to learn how to make the machines do this on their own. Is there a standard way to make "yum update" run automatically, every day, or every week? Yes, I'm sure there are many ways to do it, but is there a single way used by the majority of webmasters of CentOS sites who have automatic updates set up? Googling a bit for "make yum updates automatic" turned up some threads like:
[code]...
in which people describe writing their own custom scripts to do yum update automatically. This seems odd. It seems like the kind of thing that there would be a standard way to turn on. Also, is there a reason that virtually every newly provisioned dedicated server does not have "yum update" set up to recur automatically? If it's true that people break into websites using exploits that have been found in older versions of webservers and other software, and that sometimes these breakins would have been prevented by the newest patches, wouldn't it reduce the number of websites being compromised if the OS had yum updates turned on automatically by default?
View 9 Replies
View Related
Jun 30, 2011
Is there a way to get the bash history to delete older entries that are identical to the new one?Say the bash history would look like this normally:
Code:
cd ~
ls -l
[code]...
View 4 Replies
View Related
Nov 19, 2010
I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/mod_dav_svn.so into server: /usr/lib64/libsvn_subr-1.so.0: undefined symbol: apr_memcache_add_server
View 9 Replies
View Related
Dec 27, 2009
Recently switched my home server from Gentoo to CentOS and have been getting kernel panics consistently since I made the server "live". The machine was built with all new hardware. I'll post relevant configuration info and picture of the kernel panic below. So far all kernel panics have been with kernel "2.6.18-164.9.1.el5.centos.plus", right now I am testing with the kernel listed below to see if it does the same thing (2.6.18-164.9.1.el5).
justin@empire justin $ uname -rmi
2.6.18-164.9.1.el5 x86_64 x86_64
justin@empire justin $ rpm -qa |grep kernel |sort
kernel-2.6.18-164.6.1.el5
kernel-2.6.18-164.6.1.el5.centos.plus
kernel-2.6.18-164.9.1.el5
[Code]...
View 19 Replies
View Related
Dec 9, 2009
I am getting this error
Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address 68.178.232.100:80
no listening sockets available, shutting down Unable to open logs failed!
also what is 68.178.232.100
View 1 Replies
View Related
May 31, 2011
I'm unable to configure the apache2 with python support. I have done the configuration in the following method, but unable to start the python cgi support: I have installed the libapache2-mod-python it has installed python.load in the mods-available directory. In the apache2/sites-available/default file, I have added the following lines.
[code]...
when I request for a python script in the py folder. I get a 404 Not found error.
View 1 Replies
View Related
Feb 16, 2011
Distro: Ubuntu 9.10 (partially upgraded to 10.04)
Terminal log below:
In addition, I was unable to uninstall libreadline5 (since I already have libreadline6 installed).
It appears that libreadline5 may be the source of this problem with dependencies.
View 2 Replies
View Related
Jan 3, 2009
After i try to find logfiles follow date/month/year. i want copy this files to another directory with name's directory is time you find(date/month/year).
View 4 Replies
View Related
Nov 3, 2010
I have figured out how to use virtualhost, proxypass and proxypassreverse. So far, so good.
The problem I'm experiencing is this:
I have a reverse proxy server running apache (123.123.123.123)
Behind this proxy server I have a http server running apache (124.124.124.124).
This http server has multiple sites (virtualhost), it's only reachable via the proxy server.
If i run a nslookup on www.somedomain.com I get 123.123.123.123 (Not really but you understand what I mean)
I put my proxy to have the IP 123.123.123.123, so far so good. The requests come in to the proxy server.
I want my http server to be named 124.124.124.124.
In the http server I wish to set up my virtualhosts like this:
How do I get my proxy to grab the data from the http server?
If I do like this I will only make another request to my proxy server.
If I do like this, only the first page in the httpd.conf in my http server will work.
Do I need to setup a different DNS server for the proxy server? I would hate that. Perhaps use hosts-file in proxy. Or maybe I can use sub-domains?
View 1 Replies
View Related
Jun 9, 2011
I need to ask how to add new virtualHost in litespeed.I just installed it.
View 1 Replies
View Related
Apr 11, 2010
I've set up apache2, but I'm having trouble getting virtual hosts to work
my /etc/hosts
Code:
127.0.0.1localhost
127.0.1.1johnny-desktop
127.0.0.1go
[Code]....
View 2 Replies
View Related
May 19, 2011
Ive made a site on my Ubuntu server and link the folder where it is with VirtualHost. The problem is, when i place mypage.com works, when try www.mypage.com goes to the apache "It Works" page.
View 4 Replies
View Related
Aug 22, 2011
I am setting up a VirtualHost on my Apache. I am quite not familiar with Ubuntu setup so I am wondering what will I do with the 000-default file (which contains a template of virtualhost syntax)? What filename will I save it to?
View 1 Replies
View Related
Jul 31, 2011
We'll yesterday I got a new server and just installed Linux Debian. The thing is it's been so long (for over 5 years) that was the last time I set up virtualhosts in apache. The thing is I googled around a bit and supposedly my virtualhosts are OK, but I get this WARN when I restart apache2:
[Code]...
View 1 Replies
View Related
May 15, 2009
My server running CentOS 5.3. I use yum to install httpd, httpd-devel, php and it's module to run my site.
When I setup VirtualHost, i open httpd.conf and add some directive:
View 3 Replies
View Related
Aug 25, 2010
I currently use 192.168.1.10:85 to refer to my localhost ip address, and I setup port-based virtualhosts because this seems like the only feasible/practical way to view this from within Windows XP on my Debian's VirtualBox. Is anyone else aware of some advanced techniques in which I could view it by the ServerName instead? I would assume I have to hook it up to some sort of DNS server? I know I can also edit the hosts file in my Windows XP and point certain urls to my IP address, but it will always resolve to the primary default virtualhost.
View 1 Replies
View Related
Dec 16, 2010
I created VirtualHost in apache configuration file.
Code:
NameVirtualHost 77.79.13.20:80
<VirtualHost 77.79.13.20:80>
DocumentRoot "/var/www/host"
ServerName host.t2p.lt
</VirtualHost>
[Code]...
View 1 Replies
View Related