Ubuntu Servers :: Apache2 Alias Doesn't Work
Nov 29, 2010I'm trying to set up 2 aliases with PHP files in it. But in both cases I get a 403 Forbidden error. This is what the /etc/apache2/conf.d/alias file looks like:
[Code]....
I'm trying to set up 2 aliases with PHP files in it. But in both cases I get a 403 Forbidden error. This is what the /etc/apache2/conf.d/alias file looks like:
[Code]....
I am getting following error messages when trying to re-start the apache2 on Ubuntu Server 10.04.
[warn] The Alias directive in /etc/squirrelmail/apache.conf at line 1 will probably never match because it overlaps an earlier Alias.
[warn] The Alias directive in /etc/phpldapadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
...waiting [warn] The Alias directive in /etc/squirrelmail/apache.conf at line 1 will probably never match because it overlaps an earlier Alias.
[warn] The Alias directive in /etc/phpldapadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias.
[OK]
I'm a newb when it comes to linux operating systems so I'm attempting to get better through experience. I work for a web development company and we use Ubuntu for our operating systems (the programmers at least). Anyways, I'm trying to install LAMP services and get them working. I have all L.A.M.P. services installed... but Apache2 is giving me a problem. I have an .htaccess file installed in a directory under my document root. But Apache2 is not interpreting it. I have AllowOverride All on but I can't figure it out. I did make a bogus .htaccess file attempting to make apache give me a error, nothing.
View 2 Replies View RelatedI broke my apache server. I went into the Yast administrator / HTTP Server and enabled the "rewrite" module. The server stopped working so I went back in and disabled it. Now the server still doesn't work and when I try browsing to any of the sites on it all I see is a page that says "No database selected" for any sites using databases. For static sites I get a 404 error. I broke rule #1 and didn't have back-up configuration files so now I'm stuck. What could the Yast module have done to my configuration files? I have restarted apache several times and even re-booted the computer.
View 3 Replies View RelatedI can't connect to my ssh-server (on ubuntu 10.04) from any external address. The error in putty is "connection timed out". From my internal network, everything works fine, even if I select my external IP address and port in putty as the destination.
This is what I have done so far:
installed open ssh with the ubuntu server 10.04 cd
set up port forwarding (11041) in my router (seems to work ok, port is open according to "shields up")
configured ssh to use port 11041 in /etc/ssh/sshd_config
changed tcp and udp ssh port in /etc/services to 11041
enabled UFW and did sudo ufw allow ssh
[Code].....
I have added a domain to my new vps account but i notice that the website doesn't work with www so how can i redirect www.example.com to example.com. (bind9, apache2, webmin, ubuntu server 10.04 lts)
View 9 Replies View RelatedIve 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 RelatedI set up a mailserver using this tutorial:[URL].. It works fine so far. I run this server for a small company with about 20 mailboxes where a address looks like that.[URL].. Now I want to set up an alias domain so that [URL].. also automatically is directed into the mailbox of "user".
View 1 Replies View RelatedI'm really new with Ubuntu and have the following problem:I installed successfully sun-java6-jdk using apt-get install sun-java6-jdk Then set up the JAVA_HOME environment variable to "/usr/lib/jvm/java-6-sun-1.6.0.20"
And then installed successfully tomcat6 using apt-get install tomcat6 apt-get install tomcat6-admin tomcat6-examples tomcat6-docs Everything seem to be right, when I try the browser with http://localhost:8080 return a webpage with "It works !" and other text
But, if I try http://localhost:8080/manager/html then returns 404 error, the error is something like "The required resource (manager/html) is not available" (that is my translation from the spanish text "El recurso requerido (/manager/html) no est disponible")
[Code]..
I recently installed vsftpd on my system and it was running fine for my system users. Now I wanted to add virtual users so I googled it, I found this tutorial: [URL]
I did what they've been saying over there but when I restarted the vsftpd I couldn't login with the virtual user and also not with the system user anymore. This is the error ( with the system user who could login before ):
Code:
Status:Verbinden met 109.230.234.21:21...
Status:Verbinding aangemaakt, welkomstbericht afwachten...
Antwoord:220 (vsFTPd 2.2.2)
[Code]...
Last night I was able to set up my server so that I can just connect vnc. I even was able to be connected at the log on screen so I could select which user I wanted to log in at. For some reason today, I have to have the monitor plugged in all the until the logon screen comes up before vnc will connect. Once the logon screen is up, I then can connect via vnc & select which user I want to logon as. It's odd because it worked last nigh, but today - Nope nada, it doesn't work & I can't explain why. I did clean up - Removing some applications I don't need on my server. (I'm hoping that isn't the problem) It's odd as well because I don't have to be logged on as a user to connect via vnc, I just have to wait until the logon screen is available...Then I can unplugged the monitor & logon.
View 1 Replies View RelatedI am developing/testing a PHP app on my netbook. For some reason apache/php are returning nothing but a "500 internal server error" response when there is a problem with my php script. For example, if there is a semicolon or closing brace missing, it should cause the script to die with a hint about which line caused the script to stop working. Instead it displays nothing but a "500 internal server error" message.
View 5 Replies View RelatedI installed Ubuntu 10.04 64bit server on DELL R710 server recently.
The basic:
[System Model] --- PowerEdge R710
[Ubuntu] ---
root@pek-mcbuild2:~# cat /proc/version
Linux version 2.6.32-21-generic (buildd@yellow) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010
root@pek-mcbuild2:~# uname -ar
[Code]...
I'm trying to put two identical disks in Raid 1 for a homeserver. I got Ubuntu 11.04 server 32 bits on a USB stick. Installated till partition menu. Now I get the question how I want to partition my disks. I choose manual, and two times entire disk, one for both. It looks like this:
(iPhone quality)
I go to configure software Raid, and select Raid 1, 2 active disks, 0 spare disks, and get this:
I can't choose the other 2TB partition. I think I have to configure Raid three times, one for each partition. Not?
I click the missing 2TB partition, and get this:
But I think there's no RAID device at all, I see this again when I go to Configure Software Raid, en try to delete a RAID device:
How do I get Disk 1 and Disk 2 together in Raid 1? [URL]
I installed apache on my local machine to test my sites. I have one problem:I created a new site configuration in /etc/apache2/sites-available and enabled it. The problem is that cgi is not working, it just prints the content of the files. (The default location for cgi, /usr/lib/cgi-bin works without problem.)Here is the content of the site configuration file:
Code:
<VirtualHost *site1:80>
ServerAdmin webmaster@localhost
[code]....
I recently moved from Ubuntu Desktop to Ubuntu Server. I have a Dell D600 acting as a three prong firewall. I use a Netgear FA120 USB NIC for the third prong. After converting to Server, the NIC detects as Eth1. I'm able to configure an IP, but the NIC never sends or receives packets. The same NIC works great in Ubuntu Desktop. Dmesg never shows the NIC being ready.
View 3 Replies View RelatedI have a problem with phar: simply, stream wrappers doens't work. I've followed all tutorials on php.net but the error is always the same. Maybe something wrong on my ubuntu server?
Quote:
Ubuntu 10.04.1 LTS / Apache/2.2.14 (Ubuntu)
Quote:
PHP 5.3.2-1ubuntu4.5 with Suhosin-Patch (cli) (built: Sep 17 2010 13:41:55)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
[Code]....
I got ubuntu samba server on server 10.04 username:user1 , Home folder: /home/user1 This user connects from a macbook pro no problem. I followed the same steps to set up user2 username:user2 , Home folder: /home/user2 This user does not connect from windows vista. I have the correct ports open, 137-139 & 445, and can connect from the macintosh, but not vista. The error says that the username or password is in correct. If you need some log files or config files, just let me know where to go and they're all yours!
View 9 Replies View Relatedalias and shopt won't work in script
[Code]....
I have a small problem with lmsensors and snmp since I upgraded my small server from 9.10 to 10.04. I use cacti to monitor my servers usage, disk space as well as temps and fans.
This was running very fine before the upgrade, but now I don't get data anymore from lmsensors. It seems that SNMP doesn't give this information as before. (Cacti log says: "No sensor data was returned from SNMP")
sensors give the following output:
Code:
w83627dhg-isa-0290
Adapter: ISA adapter
Vcore: +1.12 V (min = +0.00 V, max = +1.74 V)
AVCC: +3.41 V (min = +2.98 V, max = +3.63 V)
[code]....
I'm running a server with Ubuntu 10.04 and I have installed postfix and courier. The server can recieve mail and I can fetch them using POP, but when I try to send mail it doesn't work. Postfix itself can send email if i telnet from localhost and I am using my ISP as a relay because they block port 25. I'm using outlook 2007 on my client computer and it just says that the server rejects the login attempt and tells me to check my username and password. Postfix listens on port 12 as well because the client connection also has outgoing on port 25 blocked. I have tried to use telnet to connect to the server, and I can connect. This is what I get:
[Code]....
Now what? I've tried searching for the answer but all I can come up with is AUTH PLAIN or AUTH LOGIN, but I don't know what to type after that.
Server: CentosClient: F11Remotely it doesn't work
Code:
tftp 10.0.0.2
tftp> status
[code]....
I recently installed Fedora 13 on VMware 7 environment without X window. sshd did work fine, but when I tried to put it into xinetd, it doesn't work any more. Here is what I have done so far :
I stopped sshd. #service sshd stop
and I configured xinetd.conf like below.
Quote:
#
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.
[Code]....
I don't know what I did wrong with them. I configured xinetd.conf, and I made service configuration file 'ssh' in /etc/xinetd.d, and I restarted xinetd.
What am I supposed to do to make a life on my sshd within xinetd ?
I created a new virtual host in Apache using Webmin and am having trouble getting it to work. When I created it, I opted to create the config file as a "New file under virtual servers directory /etc/apache2/sites-available". So now I have a default config file /etc/apache2/sites-available/default and a new one created by Webmin at /etc/apache2/sites-available/webmin.1412323.conf. It seems like the settings in that new Webmin config file aren't being picked up by Apache -- when I try and browse to mywebsite.com it shows my root /var/www folder, not the subdirectory /var/www/mywebsite.
Is there a way I can tell Apache to include the new Webmin config file for the virtual host or should I just copy the directives into the default file at /etc/apache2/sites-available/default? It seems like Webmin should automatically configure Apache to work with any newly generated config files.
I'm at a loss to why my reverse lookup zone doesn't work for me.I've got two views. One internal and one external. My domain is isp2.datornatverk.se. Public IP: 130.240.133.81.
dig -x @8.8.8.8 130.240.133.81
gives me:
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2917
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
I've set it up so that the internal subnets gets the domains resolved to the internal IP-addresses. When querying from external addresses I will get public IP.My named.conf.local file:
Code:
acl internals {
127.0.0.0/8;[code]..........
I don't know whether the views has messed something up. It worked before I added the views.
A week ago or so neither ssh nor scp were working when attempting to connect to my on-campus computer from home. ssh was complainig about the key not matching and I figured out I could just delete the config file it was reading the (now old) key from and let it create a new one with the updated key upon prompting me whether or not to trust the remote host.
However, even though ssh is now working, I can no longer use scp. I issued scp -v and discovered a bunch of errors. scp prompts me for the remote password and even prints the message of the day on the remote computer but then just hangs and doesn't seem to be copying any files. I'm sure the issue is with the whole key change issue but I can't quite figure out why ssh would be working just fine and scp would be failing.
the codeigniter didn't work in my Fedora,the welcome page,when your codeigniter works,it will shows,but it doesn't appear.the same step,it can work in Windows. What's the problem?
View 4 Replies View RelatedI have been trying to set up phpmyadmin for a while now, but I just cant seem to access it with the browser.
I yum installed phpmyadmin. In my /etc/httpd/conf.d/phpMyAdmin.conf I have:
When I visit [ip]/phpmyadmin I just get a 404
I've reloaded apache, checked the phpmyadmin config file, and everything seems fine, I just get constant 404.
I am trying to configure virtual alias using regular expression.
For example :
Email send to user.1@example.com and user.2@example.com will deliver to user mailbox.
Email send to user2.1@example.com and user2.2@example.com will deliver to user2 mailbox.
And the numbers or alphabet in between user name and the domain will be vary , I can't just do a normal alias.
I been try to play around with main.cf and the virtual alias table but still not able to get work. So I am not sure is the main.cf didnt configure correctly or the regular expression is not working.
I'm running 10.04 with Apache2/PHP5.x I wanted to test some basic cgi scripts, but my browser is displaying the code (#!...) If I run the scripts on the console, they work fine so CGI is not the problem, it's apache. To install the CGI module I ran sudo apt-get install libapache2-mod-perl2 with no problems. By the way, I installed Apache through apt-get instead of doing it manually, but it seems that the installation divides the conf file in different parts, so the regular apache2.conf has this:
Code:
# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include ports listing
Include /etc/apache2/ports.conf
[Code]....
I can't figure out what I need to do to get CGI working on my server.