Treating a viral infection mainly just requires getting plenty of rest, staying hydrated and waiting it out and within 2 to 3 weeks the viral infection should be over with and you should be feeling much better.
But if the Viral Infection lasts longer than 3 weeks you should see a doctor to make sure the viral infection isn't something more serious.
Also since viral infections don't go away with antibiotics the only treatment you can do for a viral infection is to take over the counter fever reducers, such as acetaminophen or ibuprofen to relieve pain and cold symptoms.