Protected Content

Apache is the most widely used web server software. Developed and maintained by Apache Software Foundation, Apache is an open source software available for free. It runs on 67% of all web servers in the world. It is fast, reliable, and secure.

Requesting Access

To request access to the departmental Apache service, submit a request to support@math.ncsu.edu detailing what the web service will be used for. Apache websites are only offered to individual NCSU users, not groups. All Apache services conform to yourunityid.math.ncsu.edu naming schema.

Setting Up Your New Apache Website

apache.math.ncsu.edu hosts all departmental apache services. The web host will automatically provision a web host container for you once you successfully complete a SSH connection. Please allow up to 10 minutes for the changes to propagate after you connect for the first time. To do so, open a terminal by running the app in Applications > Utilities > Terminal and run the following command:

ssh yourncsuid@apache.math.ncsu.edu

Once you establish your SSH connection, the server will take a few minutes to provision your apache host container. Your home directory (~) will have a “www” folder in it. This “www” folder is your web root, and your domain name (myncsuid.math.ncsu.edu) will point to it. The folder will be empty when it is created. All files in this folder are accessible from the internet without authentication!

Now that you have initialized your web host container, it is accessible securely via the web.

You may now interact with the folder and edit any files via the SSH console. You may also place files on the web server via a SFTP client or a terminal command like SCP. Various apps such as Dreamweaver can mount your www folder via SFTP.

 

If using the terminal, you can send files from your computer to the web server securely via SCP. Exit your existing terminal or launch another terminal on your Mac.

To move all files from /path/to/local/dir to web folder

scp -r /path/to/local/dir/* YourNCSUid@apache.math.ncsu.edu:~/www

Once you have sent your files, they will instantly be available under your domain. The web page will always load index.html as the root (https://myncsuid.math.ncsu.edu/).

Some users have also had success mounting their Apache storage as a network volume on their macOS device. You can do so by executing these commands:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 
brew cask install osxfuse
brew install sshfs 
sshfs unityID@apache.math.ncsu.edu:~ /local/dir/that/exists -ovolname=Apache

 

For security reasons, the server is configured to ban clients with incorrect credentials for 15 minutes after three failed attempts. If you forget your credentials three times, you will need to wait for 15 minutes before attempting again.

Student data is protected by standards such as FERPA. Anything related to student data (Student names, grades, feedback, etc) is prohibited from being hosted on this service. This service is subject to the Spirion Identity Finder and data not in compliance with NC State standards and regulations will be reported to Security & Compliance via automated scans.

For additional support contact support@math.ncsu.edu.