Ubuntu :: Apache And VHost Not Working After Upgrade
Jun 25, 2010
After Ubuntu autoupgraded my Apache, some VHosts are nor working anymore and PHP Code is not oarsed any longer. I think the apache2.conf was overwritten. I do not have a clue how ti fix that, I tried some things but now I am stuck. I have only three hosts: the default, an svn (over port 443) and one called "imcar" which has PHP scripts to be parsed.
So, in my apache2.conf I have this:
Code:
DocumentRoot /var/www
ServerName localhost
The imcar host is set up like this:
Code:
<VirtualHost *:80>
ServerName imcar
ServerAdmin webmaster@imcar
DocumentRoot /var/www/imcar
<Directory /var/www/imcar>
Options FollowSymLinks Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/imcar-error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
If I go to imcar in the browser, the default DocumentRoot is shown. If I remove the default DocumentRoot, I get a 404 on imcar.
View 8 Replies
ADVERTISEMENT
Mar 17, 2011
I am trying to add a second vhost to my once working apache config. Now I have things really bollixed up and cannot access anything. I am getting a error 400. The access log shows this:
192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951
192.168.0.2 - - [17/Mar/2011:11:24:41 -0400] "GET /" 400 951 "-" "-"
I have a default (I think) httpd.conf file and put all my config stuff in files in vhosts.d. I have 3 files there:
[Code]...
View 14 Replies
View Related
Jul 21, 2010
I read that since httpd 2.2.12 (I run 2.2.15), it is now possible to run multiple SSL certs on multiple vhosts on one ip. I didn't find a procedure to do it. Do you know how to?
View 1 Replies
View Related
Mar 18, 2011
I would like to set up apache so that:
[code]....
Is it possible with only 1 IP or do i need 2 IPs? I have tried several configurations, but they always seem to lead to a dead end with either the IP-site or the domain-sites not working. There has to be a right way to do this.
View 3 Replies
View Related
Aug 23, 2009
I'v multi v-host . need to make each V-Host work under separate user (not apache user).
There is one module/patch call " mpm-itk " . In Debian/Ubuntu every thing is sweet
just do
apt-get install apache2-mpm-prefork libapache2-mod-php5 or aptitude install apache2-mpm-itk
that is all
But in CentOS 5.3 , there is always some difficult different (Why ? I do not know)
Kindly, Look to this solutions : [URL]
Is there possibility to avoid this complications ?
- I need solution without compiling + patching the apache , Is this possible ?
View 1 Replies
View Related
Jan 6, 2010
Here my setup of Apache :
I have two virtual hosts on separate IP and on both I am using port :80 one is main website domain.name and another webmail.domain.name. And to get full link path I am using index.html with redirection derectives. My question how I can setup each Vhost to he is own redirection directive to set two full link like:
when type webmail.domainname -----> redirect to webmail.domainname/horde/imp/file.php
and www.domainname ------> redirect to www.domainname/csr/
Right now working only one of this Vhosts, just problem to separate them when I type www.domainname -----> apache redirect to webmail.domainname.
index.html
<html>
<head>
<title>WebSite</title>
<meta http-equiv="REFRESH" content="1;url=http://www.domainname/csr/"></HEAD>
<BODY>REDIRECTION</BODY>
</HTML> .....
View 8 Replies
View Related
May 1, 2011
On one of my servers (Centos 5.5), I have been hosting articularly complex CRM application for one of my clients. Recently they have asked about configuring SSL connections to the CRM. Problem is, SSL is already configured for their main domain but not the sub-domain where the CRM application is accessed. Rather than purchasing another SSL certificate for their sub-domain (and probably another IP address),ld it be possible to setup a redirection from the subdomain to a sub-directory in the SSL directory using mod_rewrite. I have searched online and through the other posts on LinuxQuestions but nothing I have tried works.For example:[URl]
View 2 Replies
View Related
Sep 24, 2010
I have two sites (actually more) configured in apache2. All sites have their own vhost file, which I enable or disable with a2enmod or a2dismod.
This works fine.
I have configured some SSL sites inside the vhost files, where I have created two different certificates. One for each site.
BUT, if I enable example2.com, it will always load the certificate from webmail.example1.com when i go to the ssl site webmail.example2.com, nomather what (because it comes first in the alphabet maybe) ?.
If I then uncomment the SSL site for example1.com if will work fine with webmail.example2.com, but of course then the site for webmail.example1.com is not working since it is uncommented.
So for some reason, it "falls back" to this site webmail.example1.com everytime, which I have absolutely no idea why it does this. All the other vhost running on port 80 configurations, works fine, but just not the SSL (port 443 ones).
Example1.com:
Code:
<VirtualHost *:80>
DocumentRoot /home/example1com/wwwroot/
ServerName www.example1.com:80
ServerAlias example1.com:80
[Code].....
View 2 Replies
View Related
Dec 18, 2010
I just added a ssl vhost.php files are not running on it, they just get downloaded when I click them. All my non-ssl vhosts were added by the admin software of my hosting company, but I had to manually add the vhost entry for my ssl vhost.Here is the entry I added for my ssl vhost:
Code:
<VirtualHost www.vhost.com:443>
DocumentRoot "/var/www/vhosts/vhost.com/httpsdocs"
[code]....
View 1 Replies
View Related
Apr 8, 2011
I run ubuntu 10.10 with apache2 and have 2 virtual hosts set up
here is an example of one of the virtual hosts
<VirtualHost *:80>
ServerName blah.endofinternet.org
ServerAlias blah.endofinternet.org
ServerAdmin davidboychuck@gmail.com
DocumentRoot /var/www/blah
[Code]....
Everything was working perfectly until i changed the internal ip of my router from 192.168.1 to 192.168.192 and now virtual hosting no longer works. As far as I can tell everything is setup correctly. I made no changes to the configuration files. Vhosts just literally stopped working. I've tried clearing dns cache not sure what to do at this point. I have tried to a2dissite and then a2ensite and reload the configurations but it literally just seems like apache is not looking for the vhosts in /etc/apache2/sites-enabled even though my apache2.conf still includes them
#Include the virtual host configurations:
Include sites-enabled/
From the apache error log:
[Sun Apr 03 16:41:50 2011] [error] [client 66.249.72.208] script '/var/www/index.php' not found or unable to stat
[Code].....
It looks like it's just not trying to use the vhost document root because when i go to blah.endofinternet.org it just takes me to the default site.
View 2 Replies
View Related
Aug 18, 2009
I want to run a linux command with apache through web browser and that's is not working. and it's working properly when I execute this command through terminal, where is the problem?
NOTE: apache have the privileges to execute the command
View 7 Replies
View Related
Oct 22, 2010
After i upgraded my server from 10.04 to 10.10 one main user account(the one i use to su) has lost the contents of the public_html directory, I'm not sure why this has happened all other users accounts are intact, i had this issue once before and fixed it, but i cannot seen to find the solution to this now.
View 3 Replies
View Related
Apr 15, 2010
I got my VPS last day and i deside to setup everything myself, but i just came to virtualhost in apache when i got stuck.
i have Ubuntu Server 9.10 whit Apache2
Let me begin to show my config files.
ports.conf
Code:
#NameVirtualHost *:80
Listen 80
<IfModule mod_ssl.c>
# SSL name based virtual hosts are not yet supported, therefore no
# NameVirtualHost statement here
[Code]....
View 2 Replies
View Related
Jan 11, 2011
I have a PCI compliance notice sitting here telling me to upgrade to Apache 2.2.17. Thing is, Ubuntu is quite happy sitting on 2.2.16 (Ubuntu).
I understand that the Ubuntu folks' reasoning in rolling security updates back to 2.2.16, but I need to get an automated scan to shut up.
View 9 Replies
View Related
Jul 15, 2010
I'm setting up a server on Ubuntu 10.04 for development. It all seems to work nicely, I just have one thing that's bugging me. I have a project in /var/www/portfolio, which is as you may guess my portfolio. Instead of the link http://localhost/portfolio I'd like to use http://portfolio.nl. So I set up a file 'portfolio.nl' under sites-available and a symlink on sites-enabled containing this: To get this to work on my local machine I set up this in /etc/hosts:
[Code]...
View 2 Replies
View Related
Jul 14, 2010
i am having a lot of challenges in changing my httpd conf file of apache 2.0 to 2.2. these conf files are customized according to our serever. now i am getting error in the load module. any link where in i can check for the difference.
View 1 Replies
View Related
Feb 8, 2011
Is there a way to update httpd from 2.2.3 to 2.2.15 without losing any configuration settings eg: virtual hosts and modules? The yum command does not find anything to update (RHEL 5.5)...
View 1 Replies
View Related
Sep 1, 2011
I am currently trying to upgrade the Apache installation on our server from v2.2.14 to v2.2.19 using:
[URL] as a guide.
Unfortunately I seem to have hit some walls. When trying to execute ./config.nice I get the following error:
./config.nice: 33: /build/buildd/apache2-2.2.14/configure: not found
Google have not yielded any results as yet. If I leave out this step and use configure, make and make install, v2.2.19 gets installed, but to a different directory and all the config will need to be reformatted as it seems it does not use the Ubuntu Apache config structure.
View 5 Replies
View Related
Feb 10, 2010
upgrading my apache 1.3 to the latest 2.2, have installed 1.3 through binary. Have also installed mysql and PHP and currently they work fine with apache 1.3.
View 1 Replies
View Related
Dec 24, 2010
I need to do this to pass PCI compliance tests, I know it's not necessarily the best thing to do but it has to be done.
How would I go about compiling this version as it's not on the official repo?
View 4 Replies
View Related
Sep 23, 2015
I run a small shellserver for my friends, and added a few IP's for vhosts. I tried google, but found nothing so I wonder if vhost listing script for IPv4 and IPv6?
View 1 Replies
View Related
Jan 23, 2010
During a request of a VPS, the provider asks me for a hostname and for the VPS I have requested which will run on a Debian. I entered 'dryaf' as hostname. What I want to do with this VPS is to point a website to its IP. I learn that I can create a vhost and configure VPS to redirect each domain name to its folder using vhost but I didn't learn any importance for hostname I don't think it should be mandatory localhost or has the form domain1.com so during request I just tipped dryaf for the hostname of the VPS. Should the hostname follows a special rule for giving it a name or no?
View 6 Replies
View Related
Jul 9, 2011
Do you have any idea on how to achieve my goal? Here is the scenario. As a requirement on our development process for every ticket we have we need to create a branch(svn) so that we can develop without disturbing other developer. Now for every checkout I made I need to create a vhost so that I can develop first in my local before deploying to the branch.The site I'm working on is based in Drupal. The files I checked out is just the all folder of Drupal. The core files are already in my local. So the script would grab the core files and copy the all folder in my checkout branch then put them in the vhost.So basically I need a script that will do these automatically for me:1. Setup a vhost Ex: My branch name is 1205googleplusone. Inside that branch has two folders, all and default. What I need only is the DocumentRoot should only point to all folder.2. Update the /etc/hosts Ex: The URL should be 1205googleplusone.domain.com. 3. Create a new database for the new site The script should create a new database and update the configuration.php
View 6 Replies
View Related
Jan 13, 2011
I'm a bit new to installing/upgrading on Linux/Centos so apologies if I've made a basic mistake here.I've searched around for the answer to this question but not found it - but apologies if this has been discussed in the forum before. The issue is that I want to upgrade Apache to version 2.2.12 or higher, because I want to install a second SSL domain on the same IP address. According to this page [URL].. you can do that from version 2.2.12.
Incidentally I've got Centos 5.4 installed. So I've had a little browse around with yum and did a "yum list *httpd* with gave me the following
[Code]...
View 2 Replies
View Related
Mar 22, 2010
I'm working on an ADSL2 connection that connects via PPPoE and it is assigned a static IP. On top of the static, the ISP has assigned a small block of 6 useable IP addresses.
- The primary static IP is on the interface ppp0
- The other 6 IPs are configured as eth0:1, eth0:2, eth0:3 etc.
With the above setup all IPs are reachable and useable on the internet.
- The revers DNS has been updated for a few of these and resolves with no problems. ie: eth0:1 has the 123.123.123.123 IP and resolves to blah.host.com and blah.host.com resolves to the IP address.
- To test this I have tried a program like BNC to bind to the IP address on eth0:1 but for some reason when connecting externally the host address is coming up with the FQDN on ppp0 interface IP, not the vhost IP.
Questions is, is this the normal behaviour since its a PPPoE connection and would only work if the ISP supported a bridged connection? something on the ISP end not allowing this to work?
View 1 Replies
View Related
Mar 4, 2011
I have some vhosts set up, and they work once apache is restarted. But, as a few minutes go by, all the vhosts end up going to the default apache "It Works!" page.
I don't think it's the vhost config since it does work initially (and I've triple checked it all by now).
I am running htcache (or whatever the disk caching module is called).
View 3 Replies
View Related
Aug 6, 2011
The Payment Card Institute (PCI) is requiring our site to upgrade to the latest versions of Apache, Mysql, OpenSSL, and PHP to fix known bugs that can compromise securityI can build all these from source, but when I do "make install" they don't mimic at all what is installed (directory format, files, etc) when I do apt-get install (of whatever old versions are in the dist).How can I find out how the packages are build via configure/make so that I can replicate the files, directory structure, etc, just with the current versions.
View 9 Replies
View Related
Jan 17, 2010
When I go to localhost, and try to open any PHP file, it asks me to download the file rather than run it like it should. JSP doesn't appear to be working either. I'm not to concerned about the JSP though.
I'm running KUbuntu 8.04 with KDE 3 on a 64bit machine.
View 9 Replies
View Related
Jan 20, 2010
I have a virtual server setup on port 80 that works fine, however, if I change the port to, say, 8080 the browser then fails to connect.I'm using webmin to configure everything, all the other settings seem to work as I would expect.I get the error "Safari canī open the page http://192.168.0.12:8080 because Safari cant connect to the server 192.168.0.1." in safari, and i get something similar on the xubuntu machine in firefox connecting via localhost.It's almost as though theres a firewall in the way, but I think it's more likely to be some config problem.
View 2 Replies
View Related
May 18, 2011
I want to try and get apache and php working on Natty. I have got apache displaying an index page but when i try to show a php file firefox just asks me if I want to save the file and doesn't display the file in the browser.I installed using some info from websites to install al LAMP Server which seems to have finished ok.I have tried using php from the command line to see what happens and it seems the html is being generated ok.
View 1 Replies
View Related