Ubuntu Servers :: Apache HTML Include Files?

Aug 26, 2010

I seem to be unable to use the html

Code:
include virtual="test.txt" I have tried following the advice in this thread http://ubuntuforums.org/showthread.php?t=1510098 but it makes no difference. The file is there, but the line is delivered to the browser as-is. Using Lucid and a new install of apache 2.2 from the repository.

View 7 Replies


ADVERTISEMENT

Fedora Servers :: F11 & Apache Permissions - Reading Files Out Of The Html Directory

Jun 12, 2009

With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?

View 1 Replies View Related

Programming :: Client Side To Include HTML Within HTML?

Sep 12, 2009

what is the best way (i.e standard way that is supported on all browsers and probably as well followed by web crawlers).... to include an html file either locally or externally in another ? Of course , i've done the research and i also know that there are server side includes (php , asp ...you name it) at the moment , i'm using this:

Quote:

<script type="text/javascript" src="path to file/include-file.js"> </script>

however, i've been warned that this method may not show up in some browsers as some tend to ignore this tag and that crawlers like your favorite search engine wouldn't bother reading this. so , what is the best and safest way to do the job? and btw , the reason why i've ousted SSI's from the start is because of among other things:

1) the fact that the included file is static html and because the text is included pretty much everywhere

2) hoping to reduce load time as the code (if successfully recognized) would hopefully be treated like any other embedded external file (e.x like an image) , therefore it would be cached without the need to downloaded it over and over again for each new page on the site.

View 1 Replies View Related

Ubuntu Servers :: Apache Include Hostname In Access.log And Error.log File Names?

Feb 8, 2010

I am sure this information is out there somewhere, but Googling apache access.log and hostname does not give you any good leads... so I hope someone here might be able to provide me with a quick answer...I am setting up a cluster of web servers, so I would like to name the access.log and error.log with the hostname of the individual servers to be able to distinguish one from another.

View 4 Replies View Related

Ubuntu :: Apache Not Parsing Php In Html Files?

Dec 10, 2010

why Apache is not parsing php code inside html files in LAMP? Whereas the same is working fine in WAMP..

View 6 Replies View Related

Ubuntu Servers :: Apache - Index.html Suddenly Became Blank Page

May 20, 2010

Today, the power was suddenly cut off in my house, then my home Ubuntu Server restarted after the power on, but when I use my laptop to view my wesite, the index.html suddenly became blank page, I did clear the firefox cache, doesn't work, still blank, and I changed browser, to seamonkey, the index.html still was blank, so, I am sure that the problem is coused by the server, and then, I put the index.html file to a subdirectory, which under the /var/www/home/index.html, and then I put the address < [url] > ,then,I can view my website the main page index.html.

View 2 Replies View Related

Fedora Servers :: Firefox Can't See Apache Index.html File

Aug 25, 2011

My setup is two laptops connected by crossover cable. One runs Windows xp the other Fedora 13. Neither is connected to internet. I'm using a subnet of 192.168.1.x On Fedora eth0 is up, apache runs because it creates pidfile. Everything pings fine. Windows xp ip pings fine from command line. Gave Windows xp a static ip of 192.168.1.1 mask 255.255.255.0 and gateway 1.2, same as eth0. xp says it sees the server. eth0 is up.

DirectoryIndex looks at index.html. I created that file with very simple code and put it in document root. Document root permissions are 755. Access_log 770. Error_log 644. Apache User 755. Listen 80 When I type the ip for eth0 (192.168.1.2) into firefox, firefox gives me an error message - can't find server. The connection status says its connected.

The error log includes a line: [warn]./mod_dnssd.c:No services found to register I don't know what this means. Apache is not writing to access_log. When I cat the path to access_log I get nothing, then a command prompt. I'm looking for the part I'm missing that will let Apache serve that index.html file to firefox so I can see how my code looks to firefox as I go.

View 6 Replies View Related

Fedora Servers :: Apache Hosting User Public HTML - Forbidden 403

May 6, 2009

I have apache working,i have users set under admin group in /home/admin/username/html that is with an html publicfolder at the end, now permissions are set right, /html is set to mode 777, and the contents also inside them. But everytime i do a 10.0.11.25/~les i get a damn forbidden error code, its got me so pissed off and i dont' know whats the problem. This is the error i get: Forbidden 403 You don't have permission to access /~les on this server.

Code:

[Tue May 05 19:37:48 2009] [notice] Apache/2.2.11 (Unix) DAV/2 PHP/5.2.6 configured -- resuming normal operations
[Tue May 05 20:44:30 2009] [error] [client 10.3.0.254] (13)Permission denied: access to /~les denied

[code]....

View 10 Replies View Related

General :: Unable To Change - Edit Html Files In New Ubuntu 9.04 - Apache Server

Oct 20, 2009

I suspect that this has come up numerous times, but I am new to Linux and I am setting up a new in-house server using Ubuntu 9.04 and Apache, etc. I can see the welcoming "It Works!" message when I log in via Firefox. I can see "index.html" when I FTP the server with the site name and password at /var/www. I can also see the -rw-r-r-- attributes, but I can't edit the HTML file or replace it. When I try to rename the "index.html" file.

I get the following message: "Request denied. Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation."

I haven't been able to determine where to enter the password or what changes I need to make to be able to work with the /var/www directory via FTP.

View 4 Replies View Related

Programming :: Include Html On A Velocity Template Mail?

Jul 13, 2010

Right now we send notification emails using a velocity template (apache and java), the thing is that the notification engine call the Email.vm file to add all the information and variables. This process only attach the information (text) on the .vm file.

We need to send that email on html. The thing is that if we write the html code on the file, when the .vm file is called that email includes the code not the result of the html.

We have tried adding the headers and everything.

The question is:

Is there some way that we can pre-process the html code and include to that email the result?

Or can we tell the .vm file that it should be handle as html? (like php for example <?php ?>, the <html> and </html> tags doesn't work.

View 1 Replies View Related

Programming :: Submitting Using Curl - Include Html Tags?

Jun 24, 2011

I am writing a script that is used to submit a package to testflight from my build system. In order to make the presentation as clear as possible I would like to include some basic HTML in the note section, however, using a < or > causes an error in curl. I have tried different variations of quoting and escaping but have not yet been able to find the solution.

Code:
VERSION_HEADER='<strong>Version: </strong>'
VERSION=`cat $VERSION_NUMBER_FILE`
NOTES+=( "$VERSION_HEADER$VERSION

[Code]...

If I use VERSION_HEADER="'<strong>Version: </strong>'" then the single quotes are submitted.

If I use < or > then those are submitted but the receiving api does not decode them correctly.

Can anyone suggest a way to submit exactly: <strong>Version: </strong>

View 3 Replies View Related

Fedora Servers :: /var/www/html - Not Allowing To Do Any Changes/create The Files Or Folders

Aug 8, 2011

I m able to do the changes in the home directory of the users' but when it comes to the /var/www/html folder, it's not allowing to do any changes/create the files or folders

I m able to view the files and it's contents

Global Settings:

View 4 Replies View Related

Fedora Servers :: Junk Added To HTML Files (HTTPD / VSFTPD)

Feb 16, 2011

I've just upgraded my serv from fedora8 to fedora12 and got a problem. The httpd and vsftpd add a junk in the beginning of html files. Png, tar and other files are ok. When I make a request to localhost everything is ok.

Code:
#telnet localhost 80
GET /1.html
<html>
</html>
but from any other computer.

Code: .....
But this is not an apache problem. When I dl html files from ftp I got the same problem. Iptables is swithed off.

View 6 Replies View Related

Ubuntu Servers :: Uploading Files To Apache?

Dec 23, 2010

I have set up a very basic apache server to host my own website (have not set up sql or database or php yet) and I am trying to find out how to fpt or copy my website. I am creating the site in windows and need to know how to transfer it to the server, preferably into the /var/www folder directly.

View 7 Replies View Related

Ubuntu Servers :: Group Permission On Dir And Files For Apache

Mar 5, 2011

Me and 2 others are working on a website (Bob, Mike, and Joe). We made a group called developers and each of us are in the developers group. The Apache server runs as www-data. When we upload files, the file owner is the users name and the group is "developers".

/etc/group has the following

Code:
www-data:x:33:
bob:x:1000:
mike:x:1001:

[Code]....

I have always just set everything to 775 and just called it good. Well I don't want to wake up to a Russian political message plastered all over the site. It's time I do things properly.

View 3 Replies View Related

Ubuntu Servers :: Apache Ignores Index Files?

May 10, 2011

My apache ignores index files (index.php ,index.html ,index.htm , ...) and while these files exists in directory apache lists directory content!I mean http://localhost/test/ lists directory content instead of showing index.php!

View 9 Replies View Related

Fedora Servers :: Copied The Web Page Files To Its Document Root <var/www/html> & Disabled The Default Web Page?

Jun 8, 2009

I have apache httpd server on my Fedora 10I got 2 problems:First : I copied the web page files to its Document Root <var/www/html> & Disabled the default web page. But when I visit http:/localhost ,it shows up the list of files in <var/www/html> as if a ftp server browsed in web page. So how can I set http://localhost load my default web page index.html ?Second :I want to set up a web server on Internet through my router . I applied for DDNS account & input it into router correctly . I set virtual host in server to redirect any access from port 80 to 192.168.1.2:80 in LAN . Just for in case , I also download and running the DDNS software & installed it on PC 192.168.1.2 in LAN . My DDNS provider is oray.cn . It's a Chinese server provider . I don't think there is anything wrong with oray.cn . But if you need its information just visit oray.cn (Google can translate it for you). So I want to know did I miss something to set up a web server in this kind of situation

View 2 Replies View Related

Ubuntu Servers :: Apache - Change The Permissions For A Directory And All Files Inside

Dec 12, 2010

I would like to change the permissions for a directory and all files inside the directory how do I do this? The website is located only on my local network so I am not worried about security. Also what would be the optimal permissions for running wordpress.

View 1 Replies View Related

Ubuntu Servers :: Disable Apache 2 Ngnix Server Will Serve Files In / Var / Www Automatically

Sep 6, 2010

So if I disable apache 2 my ngnix server will serve the files in /var/www automatically.

View 1 Replies View Related

Ubuntu Servers :: Apache2-svn Mime - Tell Apache To Treat Script Files As Plain-text?

Apr 5, 2010

I've got an apache-svn server up and running fine but I'm struggling with an irritating problem. I need the apache server to display .vbs, .cs., vb., .sh, .pl., .c, .h, .cpp, etc, etc files in the browser. Whenever our users click on a script they get a download dialog instead of the script being displayed in the browser as plain/text. I have added:

Code: AddType text/plain .vbs Into /etc/apache2/mods-enabled/mime.conf but it seems to be getting ignored. how I can tell apache to treat script files as plain-text?

View 1 Replies View Related

Ubuntu Networking :: Apache 2 - Download The HTML File?

Mar 15, 2010

I've reinstall the apache because of a starting problem and now it give me to download HTML files.

View 7 Replies View Related

Fedora Servers :: Cannot Start Apache - No Read / Write Access To HTTP Files

Jan 14, 2009

I am trying to setup my webserver and I am trying to make a website to run under suexec but somehow I cannot start my apache it directly fails and SELinux is giving me errors and don't really know what to do with it, it is giving me some command to type but not sure if this will make my server less secure. The SELinux error is as follow:

Code:
Summary:
SELinux prevented httpd reading and writing access to http files.

Detailed Description:
SELinux prevented httpd reading and writing access to http files. Ordinarily httpd is allowed full access to all files labeled with http file context. This machine has a tightened security policy with the httpd_unified turned off, this requires explicit labeling of all files. If a file is a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order to be executed. If it is read-only content, it needs to be labeled httpd_TYPE_content_t, it is writable content. it needs to be labeled httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the chcon command to change these contexts. Please refer to the man page "man httpd_selinux" or FAQ [URL] "TYPE" refers to one of "sys", "user" or "staff" or potentially other script types.

Allowing Access:
Changing the "httpd_unified" boolean to true will allow this access: "setsebool
-P httpd_unified=1"

Fix Command:
setsebool -P httpd_unified=1

I will write down how I did setup my server so maybe you can see a mistake I did. First I changed my Apache httpd.conf I added the following to it:
Code:
NameVirtualHost 192.168.1.2:80
<VirtualHost 192.168.1.2:80>
ServerName localhost
DocumentRoot /var/www/html
DirectoryIndex index.html index.html index.shtml index.php
</VirtualHost>

<VirtualHost 192.168.1.2:80>
SuexecUserGroup ulyaoth ulyaoth
ServerAdmin webmaster@ulyaoth.org
ServerName test.ulyaoth.org
DocumentRoot /var/www/ulyaoth/www/html
ErrorLog /var/www/ulyaoth/logs/error_log
CustomLog /var/www/ulyaoth/logs/access_log common
DirectoryIndex index.html index.htm index.shtml index.php
ScriptAlias /cgi-bin/ /var/www/ulyaoth/www/cgi-bin/
<Directory /var/www/ulyaoth/www/cgi-bin/>
AllowOverride none
Order allow,deny
Allow from all
Options +execCGI
AddHandler cgi-script .cgi .pl
</Directory>
</VirtualHost>

Then I created the username "ulyaoth" with the group "ulyaoth" as I specified with my suexec, then I created all the directories as specified in my httpd.conf and "chown ulyaoth:ulyaoth (dirname)" them to the right group and username.

View 10 Replies View Related

Software :: Apache Redirect Everything But 1 HTML File

Apr 19, 2010

I'm sure this is something simple, but I've googled all over and can't find the answer for the life of me. I've got an apache server and I need to redirect all requests to HTTPS in the same domain, except for 1 html file the load balancer hits and needs to get a 200 on. Can anyone point me to some documentation or show me what I need to add to the httpd.conf file to get it working properly?

View 1 Replies View Related

Debian :: Apache 2 - Changing DocumentRoot To Public HTML

Mar 25, 2010

I'm pretty new to Debian, and I'm trying to set up Apache 2, and I want to set the DocumentRoot to public_html in my home dir, but I run into some problems.

I tried to change this (/etc/apache2/sites-available/default):
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None .....

When I restart apache I get a 403 error, and when I change it back to its original, it works fine. I want to change the DocumentRoot so I can upload files via FTP to ~/public_html.
~/public_html has the mode 777.

View 9 Replies View Related

Software :: Edit Index.html File Of Apache Web Server

Aug 16, 2010

Do I need to restart the webserver if I make any change in the file index.html? Or should the changes get reflected when I open the page again without restarting the service?

View 3 Replies View Related

Software :: Apache Server Automatically Append HTML To All Served Pages?

Jun 18, 2009

I want to put Google analytics code on all legacy pages on my server, most of them don't have a template so I was wondering if Apache can automatically append the code.

View 2 Replies View Related

OpenSUSE Network :: Setup Fast Apache - Launch Static Html Pages

May 22, 2011

I would like to set-up a pretty fast a running apache. I would like to use him so to launch a pretty small web site of 10 static html pages. At this time there is no security concerns (even though I want to do it right) , because the computer has not even ethernet cable. I have some experience, 8 years ago I Was setting up virtual hosts in fedora, so this process is not a blackbox for me.

View 9 Replies View Related

Programming :: Include - H Files From Dir Inside Dir?

Feb 2, 2011

Basically I have a dir that contains my makefile and another directory inside this called source this holds main source files. External to these I have a couple of dirs common and drives.

In my make file I use

To include the protoypes from the headers in the folders common and drivers used by source, this works fine. However in common and drivers I use a few variables that are set in the source dir. I set these with externs inside the common and driver files. However I'm sure I should be able to set the directory path for source inside my makefile. So say I have inside source hardware.h with prototypes, I set DINCDIR = -I/Source -I../Drivers -I../CommonFiles

Then from a c file inside my common folder I say #include "hardware.h" the file should be able to see hardware.h and it's protoypes. However I get:

Is there some way I can get the extern dirs to see the source dir?

The set out is something like;

View 1 Replies View Related

Ubuntu :: Difference Between /usr/local/include And /usr/include?

Jul 11, 2010

What is the difference between /usr/local/include and /usr/include? When I compile my program, is both /usr/local/include and /usr/include avaliable? Can I copy a file from /usr/local/include to /usr/include?

View 1 Replies View Related

General :: Installed - 2.6.21 And Lzo-2.03 - How To Include Headers Files.

Apr 9, 2010

I have installed linux-2.6.21 and lzo-2.03 from source code in fedora core 7 in the same directory. Now I wanted to include header files of lzo library in the linux kernel source code. How to do that?

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved